Skip to content

Commit 16e2a9d

Browse files
Colin Ian Kingdavem330
authored andcommitted
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>
1 parent 31a43fa commit 16e2a9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/sbus/char/oradax.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ static int dax_open(struct inode *inode, struct file *f)
689689
alloc_error:
690690
kfree(ctx->ccb_buf);
691691
done:
692-
if (ctx != NULL)
693-
kfree(ctx);
692+
kfree(ctx);
694693
return -ENOMEM;
695694
}
696695

0 commit comments

Comments
 (0)