Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries/bsr: Remove redundant initialization of bsr dev_t declaration.

Remove the unnecessary initialization of "dev_t bsr_dev" since it's
subsequently used in an "alloc_chrdev_region()" call which uses that
variable in an output-only fashion.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Robert P. J. Day and committed by
Benjamin Herrenschmidt
cce36444 ecb73902

+1 -1
+1 -1
drivers/char/bsr.c
··· 295 295 static int __init bsr_init(void) 296 296 { 297 297 struct device_node *np; 298 - dev_t bsr_dev = MKDEV(bsr_major, 0); 298 + dev_t bsr_dev; 299 299 int ret = -ENODEV; 300 300 int result; 301 301