From: Sandhya Bankar Date: Mon, 19 Sep 2016 09:12:24 +0000 (+0530) Subject: Staging: rts5208: ms: Use x instead of x != NULL. X-Git-Tag: v5.15~12752^2~302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f432bc81415d7592e664485701c55dc5c6672a3b;p=platform%2Fkernel%2Flinux-starfive.git Staging: rts5208: ms: Use x instead of x != NULL. Use x instead of x != NULL. This patch was found by checkpatch. Signed-off-by: Sandhya Bankar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c index f927ba6..6afddea 100644 --- a/drivers/staging/rts5208/ms.c +++ b/drivers/staging/rts5208/ms.c @@ -4077,7 +4077,7 @@ void ms_free_l2p_tbl(struct rtsx_chip *chip) struct ms_info *ms_card = &chip->ms_card; int i = 0; - if (ms_card->segment != NULL) { + if (ms_card->segment) { for (i = 0; i < ms_card->segment_cnt; i++) { vfree(ms_card->segment[i].l2p_table); ms_card->segment[i].l2p_table = NULL;