OSDN Git Service

misc: sgi-xp: remove meaningless null check before kfree
authorzhong jiang <zhongjiang@huawei.com>
Fri, 17 Aug 2018 03:42:35 +0000 (11:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:36:20 +0000 (15:36 +0200)
commit99aeebe8140c642cdf2c3822b1dcbd37433fe770
treeb0bcedcce6c388ebb47a03f91552ad9693647b35
parent2e6ae11dd0d1c37f44cec51a58fb2092e55ed0f5
misc: sgi-xp: remove meaningless null check before kfree

kfree has taken null pointer into account. so check the null pointer
before kfree is meaningless.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Robin Holt <robinmholt@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sgi-xp/xpc_partition.c