[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 <holzheu@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
a0fa8e3743
commit
58ace9f2a8
1 changed files with 1 additions and 2 deletions
|
@ -642,8 +642,7 @@ debug_open(struct inode *inode, struct file *file)
|
||||||
p_info = kmalloc(sizeof(file_private_info_t),
|
p_info = kmalloc(sizeof(file_private_info_t),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if(!p_info){
|
if(!p_info){
|
||||||
if(debug_info_snapshot)
|
debug_info_free(debug_info_snapshot);
|
||||||
debug_info_free(debug_info_snapshot);
|
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue