Skip to content

Clean up tests if NULL returned on failure

Bhaktipriya Shridhar outreachy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: rtl8712: usb_ops_linux: Clean up tests if NULL returned on failuredrivers/staging/rtl8712/usb_ops_linux.c+1 -10 replies
2/4staging: rtl8712: rtl871x_mlme: Clean up tests if NULL returned on failuredrivers/staging/rtl8712/rtl871x_mlme.c+2 -20 replies
3/4staging: rtl8712: rtl871x_cmd: Clean up tests if NULL returned on failuredrivers/staging/rtl8712/rtl871x_cmd.c+40 -400 replies
4/4staging: rtl8712: rtl871x_ioctl_linux: Clean up tests if NULL returned on failuredrivers/staging/rtl8712/rtl871x_ioctl_linux.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Clean up tests if NULL returned on failure

Some functions like kmalloc/kzalloc/kcalloc return NULL on failure. When NULL represents failure, !x is commonly used.

Bhaktipriya Shridhar (4):
staging: rtl8712: usb_ops_linux: Clean up tests if NULL returned on
failure
staging: rtl8712: rtl871x_mlme: Clean up tests if NULL returned on
failure
staging: rtl8712: rtl871x_cmd: Clean up tests if NULL returned on
failure
staging: rtl8712: rtl871x_ioctl_linux: Clean up tests if NULL
returned on failure

 drivers/staging/rtl8712/rtl871x_cmd.c         | 80 +++++++++++++--------------
 drivers/staging/rtl8712/rtl871x_ioctl_linux.c |  4 +-
 drivers/staging/rtl8712/rtl871x_mlme.c        |  4 +-
 drivers/staging/rtl8712/usb_ops_linux.c       |  2 +-
 4 files changed, 45 insertions(+), 45 deletions(-)

--
2.1.4