aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/bsr.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2011-04-21 10:00:18 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-04 16:02:40 +1000
commitcce36444173b943f7b27e726ab38b3340cdebc41 (patch)
treeab48a588fbe884863e99ff5e5c1dffed59ae35af /drivers/char/bsr.c
parentpowerpc/pseries/eeh: Handle functional reset on non-PCIe device (diff)
downloadlinux-dev-cce36444173b943f7b27e726ab38b3340cdebc41.tar.xz
linux-dev-cce36444173b943f7b27e726ab38b3340cdebc41.zip
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>
Diffstat (limited to 'drivers/char/bsr.c')
-rw-r--r--drivers/char/bsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c
index a4a6c2f044b5..cf39bc08ce08 100644
--- a/drivers/char/bsr.c
+++ b/drivers/char/bsr.c
@@ -295,7 +295,7 @@ static int bsr_create_devs(struct device_node *bn)
static int __init bsr_init(void)
{
struct device_node *np;
- dev_t bsr_dev = MKDEV(bsr_major, 0);
+ dev_t bsr_dev;
int ret = -ENODEV;
int result;