mtd: delete unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 20 Nov 2014 12:50:43 +0000 (13:50 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 26 Nov 2014 06:44:10 +0000 (22:44 -0800)
commit05a221bb1f49e6eebc9a3858cb45506f403b3ab6
treeaa85b86eb0cc5d7aca9e6da39394157d8491f87c
parent775a9134f4398ca98a10af8cc3cf9b664017267f
mtd: delete unnecessary checks before two function calls

The functions kfree() and pci_dev_put() test whether their argument is NULL
and then return immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/devices/pmc551.c