diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-16 16:05:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-18 07:54:59 +0300 |
commit | b646c08e12c1879e1cfb94d3875e62024b706c4a (patch) | |
tree | d1d33b68b738e74a57041a985e99c54cf85543b2 /drivers/s390/net/lcs.c | |
parent | ee6edb9707cf2c50bc3df66b06df33a6aa8c9075 (diff) | |
download | linux-b646c08e12c1879e1cfb94d3875e62024b706c4a.tar.xz |
s390/net: Delete useless checks before function calls
The function debug_unregister() tests whether its argument is
NULL and then returns 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: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/lcs.c')
-rw-r--r-- | drivers/s390/net/lcs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 92190aa20b9f..00b7d9c9fe48 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c @@ -88,10 +88,8 @@ static debug_info_t *lcs_dbf_trace; static void lcs_unregister_debug_facility(void) { - if (lcs_dbf_setup) - debug_unregister(lcs_dbf_setup); - if (lcs_dbf_trace) - debug_unregister(lcs_dbf_trace); + debug_unregister(lcs_dbf_setup); + debug_unregister(lcs_dbf_trace); } static int |