Skip to content

Commit

Permalink
powerpc/pseries/bsr: Remove redundant initialization of bsr dev_t dec…
Browse files Browse the repository at this point in the history
…laration.

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 <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
rpjday authored and ozbenh committed May 4, 2011
1 parent ecb7390 commit cce3644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/bsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cce3644

Please sign in to comment.