[PATCH] tty: ipwireless: Remove redundant NULL check before kfree

2013-03-05 Thread Syam Sidhardhan
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/tty/ipwireless/hardware.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/ipwireless/hardware.c b/drivers/tty/ipwireless/hardware.c index 97a511f..2c14842 100644 --- a/drivers/tty

[PATCH] mtd: maps: Remove redundant NULL check before kfree

2013-02-26 Thread Syam Sidhardhan
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/mtd/maps/ck804xrom.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c index 586a1c7..0455166 100644 --- a/drivers/mtd/maps/ck804xrom.c

[PATCH] dvb-usb: Remove redundant NULL check before kfree

2013-02-26 Thread Syam Sidhardhan
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/media/usb/dvb-usb/cinergyT2-fe.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb/cinergyT2-fe.c b/drivers/media/usb/dvb-usb/cinergyT2-fe.c index 1efc028..c890fe4

[PATCH] dma: imx-dma: Remove redundant NULL check before kfree

2013-02-24 Thread Syam Sidhardhan
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan --- drivers/dma/imx-dma.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 70b8975..0988583 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c

[PATCH] s3c-adc-battery: Fix possible NULL pointer dereference

2013-02-24 Thread Syam Sidhardhan
Check for (bat == NULL) has to be done before accessing bat Signed-off-by: Syam Sidhardhan --- drivers/power/s3c_adc_battery.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/power/s3c_adc_battery.c b/drivers/power/s3c_adc_battery.c index d2ca989..5948ce0

[PATCH] drm/i915: Fix missing variable initilization

2013-02-24 Thread Syam Sidhardhan
Need to initialize the variable wait to false. Signed-off-by: Syam Sidhardhan --- drivers/gpu/drm/i915/intel_ddi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index fc95ef0..5d0a687 100644 --- a

[PATCH] s390/dis: Fix invalid array size

2013-02-24 Thread Syam Sidhardhan
We are using sizeof operator for an array given as function argument, which is incorrect. Signed-off-by: Syam Sidhardhan --- arch/s390/kernel/dis.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/dis.c b/arch/s390/kernel/dis.c index c50665f..3ad5e95

Re: [PATCH 3/3] proc_devtree: Replace include linux/module.h with linux/export.h

2013-02-14 Thread Syam Sidhardhan
Hi, On Tue, Nov 13, 2012 at 9:48 PM, Syam Sidhardhan wrote: > Since it uses only THIS_MODULE macro, include > is the right to go here. > > Signed-off-by: Syam Sidhardhan > --- > fs/proc/proc_devtree.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >

[PATCH 3/3] proc_devtree: Replace include linux/module.h with linux/export.h

2012-11-13 Thread Syam Sidhardhan
Since it uses only THIS_MODULE macro, include is the right to go here. Signed-off-by: Syam Sidhardhan --- fs/proc/proc_devtree.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index df7dd08..0e9df31 100644 --- a/fs/proc