diff options
author | Ioana Ciornei | 2015-10-18 14:51:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-25 03:02:42 +0100 |
commit | b6f6fd8a871cebc8085719c08ea489d1d98bb21e (patch) | |
tree | 399a69eb2045b0eb4eaba39bf56f0b9ebdb8c2f7 /drivers/staging/gdm724x/gdm_mux.c | |
parent | staging: gdm724x: properly indent to match open paranthesis (diff) | |
download | kernel-qcow2-linux-b6f6fd8a871cebc8085719c08ea489d1d98bb21e.tar.gz kernel-qcow2-linux-b6f6fd8a871cebc8085719c08ea489d1d98bb21e.tar.xz kernel-qcow2-linux-b6f6fd8a871cebc8085719c08ea489d1d98bb21e.zip |
stating: gdm724x: remove explicit NULL comparison
This patch converts explicit NULL comparison to its shorter
equivalent form.
Done with coccinelle semantic patch:
@@
expression e;
@@
- e == NULL
+ !e
Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm724x/gdm_mux.c')
-rw-r--r-- | drivers/staging/gdm724x/gdm_mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index e82f3179c5db..0408549ca994 100644 --- a/drivers/staging/gdm724x/gdm_mux.c +++ b/drivers/staging/gdm724x/gdm_mux.c @@ -492,7 +492,7 @@ static int init_usb(struct mux_dev *mux_dev) for (i = 0; i < MAX_ISSUE_NUM * 2; i++) { r = alloc_mux_rx(); - if (r == NULL) { + if (!r) { ret = -ENOMEM; break; } @@ -662,7 +662,7 @@ static int __init gdm_usb_mux_init(void) { mux_rx_wq = create_workqueue("mux_rx_wq"); - if (mux_rx_wq == NULL) { + if (!mux_rx_wq) { pr_err("work queue create fail\n"); return -1; } |