Skip to content

Commit

Permalink
touchscreen: nt36672c: Return 0 if allocation fails in test_buff_init
Browse files Browse the repository at this point in the history
Change-Id: I13d0f956c54555394683747fd0efaeef678b3a85
Signed-off-by: UtsavBalar1231 <[email protected]>
  • Loading branch information
UtsavBalar1231 authored and EndCredits committed Aug 18, 2022
1 parent 3f552d0 commit 84adaa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/nt36672c/nt36xxx_mp_ctrlram.c
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,7 @@ static void test_buff_free(struct test_buf *buf)
static int32_t test_buff_init(struct test_buf **tbuf)
{
struct test_buf *buf;
int32_t ret;
int32_t ret = 0;

buf = (struct test_buf *)kzalloc(sizeof(*buf), GFP_KERNEL);
if (!buf) {
Expand Down

0 comments on commit 84adaa0

Please sign in to comment.