OSDN Git Service

s390/pci: Deletion of unnecessary checks before the function call "debug_unregister"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 22 Nov 2014 14:00:55 +0000 (15:00 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 28 Nov 2014 08:47:20 +0000 (09:47 +0100)
commit8c080bd0a1f9f337add122e1c0252151a8f89c14
tree4e2728c82f6a731121f5aa8cab2533b51871a60f
parent7eed2e09abf0a0064a7e3f4a911b37d71202dfa4
s390/pci: Deletion of unnecessary checks before the function call "debug_unregister"

The debug_unregister() function performs also input parameter validation.
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: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_debug.c