Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16e2a9d3 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

oradax: remove redundant null check before kfree



A null check before a kfree is redundant, so remove it.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31a43fa7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}