From: Michael Holzheu Date: Thu, 26 Mar 2009 14:24:50 +0000 (+0100) Subject: [S390] s390dbf: Remove needless check for NULL pointer. X-Git-Tag: firefly_0821_release~15234^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=58ace9f2a8f1caa0303aa64079d3929be28a937a;p=firefly-linux-kernel-4.4.55.git [S390] s390dbf: Remove needless check for NULL pointer. The check for NULL pointer has already be done before. Therefore we can remove the second check. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 369de12b8733..be8bceaf37d9 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -642,8 +642,7 @@ found: p_info = kmalloc(sizeof(file_private_info_t), GFP_KERNEL); if(!p_info){ - if(debug_info_snapshot) - debug_info_free(debug_info_snapshot); + debug_info_free(debug_info_snapshot); rc = -ENOMEM; goto out; }