misc: sram: remove redundant null pointer check before of_node_put
authorzhong jiang <zhongjiang@huawei.com>
Sun, 16 Sep 2018 13:08:45 +0000 (21:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:20:59 +0000 (20:20 +0200)
commit3104389edc012e2567cabb94af8763121c33e72b
tree775e711d59dfe308eee3262b8d184d8cb7e203a1
parent7153d9afdbd52805f99c28f51e81ee65f5dabbf8
misc: sram: remove redundant null pointer check before of_node_put

of_node_put has taken the null pinter check into account. So it is
safe to remove the duplicated check before of_node_put.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sram.c