Re: [PATCH 1/7] mtd: docg3: drop dead code

2015-03-02 Thread Robert Jarzmik
Dan Carpenter writes: > On Sat, Feb 28, 2015 at 02:02:24AM -0800, Brian Norris wrote: >> diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c >> index 448ce42f951e..01eddea1f0d9 100644 >> --- a/drivers/mtd/devices/docg3.c >> +++ b/drivers/mtd/devices/docg3.c >> @@ -2079,8 +2079,

Re: [PATCH 1/7] mtd: docg3: drop dead code

2015-03-02 Thread Dan Carpenter
On Sat, Feb 28, 2015 at 02:02:24AM -0800, Brian Norris wrote: > diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c > index 448ce42f951e..01eddea1f0d9 100644 > --- a/drivers/mtd/devices/docg3.c > +++ b/drivers/mtd/devices/docg3.c > @@ -2079,8 +2079,6 @@ static int __init docg3_pr

[PATCH 1/7] mtd: docg3: drop dead code

2015-02-28 Thread Brian Norris
If no devices were found, we would already have skipped over this code. Detected by Coverity, CID #744270 Signed-off-by: Brian Norris --- drivers/mtd/devices/docg3.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 448ce42f951e