aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sb105x
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-10-19 23:05:01 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 14:53:45 -0700
commit131ccc2e74ea42328d66c67bd7f9e993e48e2fdb (patch)
tree046be87c7df8bfda553bf3f4b3439b8a556a4459 /drivers/staging/sb105x
parentStaging: line6: replacing -EINVAL with retval in driver.c (diff)
downloadlinux-dev-131ccc2e74ea42328d66c67bd7f9e993e48e2fdb.tar.xz
linux-dev-131ccc2e74ea42328d66c67bd7f9e993e48e2fdb.zip
Staging: sb105x: Remove redundant null check
This patch fixes the following Sparse information in sb_pci_mp.c- ~/git/kernels/linux/drivers/staging/sb105x/sb_pci_mp.c:1813 mp_unregister_driver() info: redundant null check on drv->state calling kfree() Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sb105x')
-rw-r--r--drivers/staging/sb105x/sb_pci_mp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/sb105x/sb_pci_mp.c b/drivers/staging/sb105x/sb_pci_mp.c
index 23db32f07fd5..adb6bea728b2 100644
--- a/drivers/staging/sb105x/sb_pci_mp.c
+++ b/drivers/staging/sb105x/sb_pci_mp.c
@@ -1808,10 +1808,7 @@ void mp_unregister_driver(struct uart_driver *drv)
drv->tty_driver = NULL;
- if (drv->state)
- {
- kfree(drv->state);
- }
+ kfree(drv->state);
}