linux-stable/drivers/staging
Bhaktipriya Shridhar 670e3fef68 staging: rtl8712: rtl871x_mlme: Clean up tests if NULL returned on failure
Some functions like kmalloc/kzalloc return NULL on failure.
When NULL represents failure, !x is commonly used.

This was done using Coccinelle:

@@
expression *e;
identifier l1;
@@

e = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\)(...);
...
- e == NULL
+ !e

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-28 07:30:36 -07:00
..
android Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2016-03-25 08:48:31 -07:00
board Staging: board: Blank lines aren't necessary before a close brace 2016-02-07 19:57:22 -08:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi staging: comedi: ni_mio_common: fix the ni_write[blw]() functions 2016-03-22 22:22:13 -04:00
dgnc staging: dgnc: Add whitespace around OR'd flags ("|") 2016-03-28 07:30:36 -07:00
emxx_udc Staging: emxx_udc: emxx_udc: Add space around operator. 2016-03-28 07:30:36 -07:00
fbtft Staging: fbtft: fb_agm1264k-fl: No space is necessary after cast. 2016-03-28 07:30:36 -07:00
fsl-mc staging: fsl-mc: fix incorrect type passed to dev_err macros 2016-03-22 22:22:13 -04:00
fwserial staging: fwserial: (coding-style) rewrite comparisons to NULL as "!fifo->data" 2016-02-07 19:36:14 -08:00
gdm724x Staging: gdm724x: Replace random_ether_addr with eth_random_addr 2016-03-05 14:48:04 -08:00
goldfish staging: goldfish: audio: fix compiliation on arm 2016-03-11 22:09:09 -08:00
gs_fpgaboot Staging: gs_fpgaboot: Replace 'int32_t' with 'int'. 2016-03-28 07:30:36 -07:00
i4l Staging: i4l: pcbit: drv: Remove unnecessary semicolon. 2016-03-28 07:30:36 -07:00
iio staging: iio: use kernel preferred block commenting style 2016-03-28 07:30:36 -07:00
lustre Staging: lustre: o2iblnd: Use sizeof type *pointer instead of sizeof type. 2016-03-28 07:30:36 -07:00
media staging: media: omap4iss: Match alignment with open parenthesis. 2016-03-28 07:30:36 -07:00
most Staging: most: Remove atomic_counter_t typedef 2016-03-28 07:30:36 -07:00
mt29f_spinand MTD updates for v4.6 2016-03-24 19:57:15 -07:00
netlogic Staging: netlogic: Remove & from function name. 2016-03-28 07:30:36 -07:00
nvec Staging: nvec: removes a useless cast on a void pointer 2016-03-28 07:30:36 -07:00
octeon staging: octeon: Fix alignment with open parenthesis 2016-03-28 07:30:36 -07:00
octeon-usb staging: octeon-usb: update TODO 2016-02-25 22:38:16 -08:00
rdma Round two of 4.6 merge window patches 2016-03-22 15:48:44 -07:00
rtl8188eu Staging: rtl8188eu: usb_halinit: Use !x instead of x == NULL. 2016-03-28 07:30:36 -07:00
rtl8192e Staging driver patches for 4.6-rc1 2016-03-17 22:13:41 -07:00
rtl8192u staging: rtl8192u: fix typo in debug message 2016-03-28 07:30:36 -07:00
rtl8712 staging: rtl8712: rtl871x_mlme: Clean up tests if NULL returned on failure 2016-03-28 07:30:36 -07:00
rtl8723au Staging: rtl8723au: Remove unnecessary return statement. 2016-03-28 07:30:36 -07:00
rts5208 Staging: rts5208: Add space around '+' 2016-03-28 07:30:36 -07:00
skein staging: skein: threefish_block: Use ror64 2016-03-28 07:30:36 -07:00
slicoss staging: slicoss: Add error check for pci_map_single 2016-03-28 07:30:36 -07:00
sm750fb Staging: sm750fb: Remove unused functions 2016-03-11 22:09:09 -08:00
speakup staging: speakup: Replace del_timer with del_timer_sync 2016-03-11 22:09:09 -08:00
unisys staging: unisys: visorbus: rename create_visor_device gotos 2016-03-28 07:30:36 -07:00
vme staging: vme: devices: Replace kzalloc with devm_kzalloc 2016-03-11 22:09:09 -08:00
vt6655 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2016-03-19 10:05:34 -07:00
vt6656 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2016-03-19 10:05:34 -07:00
wilc1000 staging: wilc1000: Replaced comparison to NULL statements 2016-03-28 07:30:36 -07:00
wlan-ng Staging: wlan-ng: Do not print message if kzalloc() failed. 2016-03-11 22:09:09 -08:00
xgifb Staging: xgifb: remove useless blank lines 2016-03-11 22:09:09 -08:00
Kconfig staging: delete STE RMI4 hackish driver 2016-03-22 22:29:38 -04:00
Makefile staging: delete STE RMI4 hackish driver 2016-03-22 22:29:38 -04:00