diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-10-19 21:35:01 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-20 01:53:45 +0400 |
commit | 131ccc2e74ea42328d66c67bd7f9e993e48e2fdb (patch) | |
tree | 046be87c7df8bfda553bf3f4b3439b8a556a4459 | |
parent | 056e0af2f5dd7c19176bd9d099cd9e9649be33f8 (diff) | |
download | linux-131ccc2e74ea42328d66c67bd7f9e993e48e2fdb.tar.xz |
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>
-rw-r--r-- | drivers/staging/sb105x/sb_pci_mp.c | 5 |
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); } |