Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 131ccc2e authored by Rashika Kheria's avatar Rashika Kheria Committed by Greg Kroah-Hartman
Browse files

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 056e0af2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1808,10 +1808,7 @@ void mp_unregister_driver(struct uart_driver *drv)
    drv->tty_driver = NULL;


    if (drv->state)
    {
    kfree(drv->state);
    }

}