mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
056e0af2f5
commit
131ccc2e74
|
@ -1808,10 +1808,7 @@ void mp_unregister_driver(struct uart_driver *drv)
|
|||
drv->tty_driver = NULL;
|
||||
|
||||
|
||||
if (drv->state)
|
||||
{
|
||||
kfree(drv->state);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue