From: Jacky Boen <aqiank@gmail.com>
To: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Jacky Boen <aqiank@gmail.com>
Subject: [PATCH 10/11] Staging: drivers: rtl8188eu: fixed if-NULL comparisons style
Date: Sun, 1 May 2016 23:50:38 +0800 [thread overview]
Message-ID: <1462117839-6866-10-git-send-email-aqiank@gmail.com> (raw)
In-Reply-To: <1462117839-6866-1-git-send-email-aqiank@gmail.com>
Fixed coding style issue
Signed-off-by: Jacky Boen <aqiank@gmail.com>
---
drivers/staging/rtl8188eu/hal/usb_halinit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index 82269eb..ef04638 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1969,7 +1969,7 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l
if (mac_id >= NUM_STA) /* CAM_SIZE */
return;
psta = pmlmeinfo->FW_sta_info[mac_id].psta;
- if (psta == NULL)
+ if (!psta)
return;
switch (mac_id) {
case 0:/* for infra mode */
@@ -2079,7 +2079,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
- if (adapt->HalData == NULL)
+ if (!adapt->HalData)
DBG_88E("cant not alloc memory for HAL DATA\n");
halfunc->hal_power_on = rtl8188eu_InitPowerOn;
--
2.7.4
next prev parent reply other threads:[~2016-05-01 15:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-01 15:50 [PATCH 01/11] Staging: drivers: rtl8188eu: move constants to the right in comparisons Jacky Boen
2016-05-01 15:50 ` [PATCH 02/11] Staging: drivers: rtl8188eu: fixed typo Jacky Boen
2016-05-01 15:50 ` [PATCH 03/11] Staging: drivers: rtl8188eu: fixed block comments style Jacky Boen
2016-05-01 15:50 ` [PATCH 04/11] Staging: drivers: rtl8188eu: fixed newlines style Jacky Boen
2016-05-01 15:50 ` [PATCH 05/11] Staging: drivers: rtl8188eu: fixed brace style Jacky Boen
2016-05-01 15:50 ` [PATCH 06/11] Staging: drivers: rtl8188eu: fixed unnecessary else branch Jacky Boen
2016-05-01 15:50 ` [PATCH 07/11] Staging: drivers: rtl8188eu: fixed extraneous indentation Jacky Boen
2016-05-01 15:50 ` [PATCH 08/11] Staging: drivers: rtl8188eu: fixed extraneous parentheses Jacky Boen
2016-05-01 15:50 ` [PATCH 09/11] Staging: drivers: rtl8188eu: fixed extraneous spaces Jacky Boen
2016-05-01 15:50 ` Jacky Boen [this message]
2016-05-01 15:50 ` [PATCH 11/11] Staging: drivers: rtl8188eu: use sizeof(*ptr) instead of sizeof(struct) Jacky Boen
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=1462117839-6866-10-git-send-email-aqiank@gmail.com \
--to=aqiank@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®