Skip to content

Commit

Permalink
Staging: rts5208: ms: Use x instead of x != NULL.
Browse files Browse the repository at this point in the history
Use x instead of x != NULL. This patch was found by checkpatch.

Signed-off-by: Sandhya Bankar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Sandhya-Bankar authored and gregkh committed Sep 20, 2016
1 parent e29cebe commit f432bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rts5208/ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f432bc8

Please sign in to comment.