diff options
| author | Meghana Madhyastha <[email protected]> | 2017-09-15 14:43:15 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-09-18 11:52:36 +0200 |
| commit | 6561e82d93e12744f1fa2048b6a17e5739682749 (patch) | |
| tree | 25052e4081ad997de91b76c824d297485988290a /tools/perf/scripts/python | |
| parent | b351fa3ce6d858b7bb4183a12915eaf6f5c8b630 (diff) | |
Staging: irda: drivers: Replace (skb == NULL) with (!skb)
Some functions return NULL as an indication of failure.
The style (!skb) is more common than (skb == NULL) for these
functions.
Found by the following Coccinelle script.
@@
identifier i;
statement S;
@@
i = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\|
alloc_netdev\|dev_alloc_skb\)(...));
(
-if (i == NULL)
+if (!i)
S
|
-if (NULL == i)
+if (!i)
S
)
Signed-off-by: Meghana Madhyastha <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions