]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: kpc_spi: Remove unnecessary null check before kfree
authorYueHaibing <yuehaibing@huawei.com>
Thu, 11 Jul 2019 14:07:26 +0000 (22:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:13 +0000 (07:34 +0200)
commit9c121af765367bc351ff2dcf0b86b117dabf8fec
treef410110b51579d5be3e524d92e494eb702c54a29
parent70da014429287d017b3ceed14288a4613d8f43ba
staging: kpc2000: kpc_spi: Remove unnecessary null check before kfree

A null check before a kfree is redundant, so remove it.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190711140726.46732-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c