Skip to content

Commit

Permalink
[S390] s390dbf: Remove needless check for NULL pointer.
Browse files Browse the repository at this point in the history
The check for NULL pointer has already be done before. Therefore we can remove
the second check.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Mar 26, 2009
1 parent a0fa8e3 commit 58ace9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/s390/kernel/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,7 @@ debug_open(struct inode *inode, struct file *file)
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;
}
Expand Down

0 comments on commit 58ace9f

Please sign in to comment.