projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29cebe
)
Staging: rts5208: ms: Use x instead of x != NULL.
author
Sandhya Bankar
<
[email protected]
>
Mon, 19 Sep 2016 09:12:24 +0000
(14:42 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 20 Sep 2016 11:57:19 +0000
(13:57 +0200)
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]
>
drivers/staging/rts5208/ms.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts5208/ms.c
b/drivers/staging/rts5208/ms.c
index f927ba66f7eddd36987d6799555137785922b594..6afddeae13af107c88111c7f9181c8a68f2b7b4d 100644
(file)
--- 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;