mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
oradax: remove redundant null check before kfree
A null check before a kfree is redundant, so remove it. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
31a43fa794
commit
16e2a9d396
1 changed files with 1 additions and 2 deletions
|
|
@ -689,8 +689,7 @@ static int dax_open(struct inode *inode, struct file *f)
|
|||
alloc_error:
|
||||
kfree(ctx->ccb_buf);
|
||||
done:
|
||||
if (ctx != NULL)
|
||||
kfree(ctx);
|
||||
kfree(ctx);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue