From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH 0/4] Clean up tests if NULL returned on failure
Date: Mon, 21 Mar 2016 02:07:58 +0530 [thread overview]
Message-ID: <cover.1458506158.git.bhaktipriya96@gmail.com> (raw)
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
next reply other threads:[~2016-03-20 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-20 20:37 Bhaktipriya Shridhar [this message]
2016-03-20 20:38 ` [PATCH 1/4] staging: rtl8712: usb_ops_linux: Clean up tests if NULL returned on failure Bhaktipriya Shridhar
2016-03-20 20:39 ` [PATCH 2/4] staging: rtl8712: rtl871x_mlme: " Bhaktipriya Shridhar
2016-03-20 20:39 ` [PATCH 3/4] staging: rtl8712: rtl871x_cmd: " Bhaktipriya Shridhar
2016-03-20 20:40 ` [PATCH 4/4] staging: rtl8712: rtl871x_ioctl_linux: " Bhaktipriya Shridhar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1458506158.git.bhaktipriya96@gmail.com \
--to=bhaktipriya96@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.