mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08: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 <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
31a43fa794
commit
16e2a9d396
@ -689,7 +689,6 @@ static int dax_open(struct inode *inode, struct file *f)
|
||||
alloc_error:
|
||||
kfree(ctx->ccb_buf);
|
||||
done:
|
||||
if (ctx != NULL)
|
||||
kfree(ctx);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user