projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7568ac9
)
staging: r8712u: Merging Realtek's latest (v2.6.6). Redundant NULL check.
author
Ali Bahar
<ali@internetdog.org>
Sat, 3 Sep 2011 19:14:10 +0000
(
03:14
+0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 7 Sep 2011 00:00:31 +0000
(17:00 -0700)
Removed the redundant NULL check in LedControl871x.
As noted by Dan Carpenter, the address of a stack variable is never NULL.
Signed-off-by: Ali Bahar <ali@internetDog.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl8712_led.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/rtl8712/rtl8712_led.c
b/drivers/staging/rtl8712/rtl8712_led.c
index cb1751e95f0696e0682345821df2c1ea7444c7a1..bac56e5caf123a1809afa7962b4c16f0bae393cb 100644
(file)
--- a/
drivers/staging/rtl8712/rtl8712_led.c
+++ b/
drivers/staging/rtl8712/rtl8712_led.c
@@
-1786,7
+1786,7
@@
void LedControl871x(struct _adapter *padapter, enum LED_CTL_MODE LedAction)
{
struct led_priv *ledpriv = &(padapter->ledpriv);
- if (ledpriv
== NULL || ledpriv
->bRegUseLed == false)
+ if (ledpriv->bRegUseLed == false)
return;
switch (ledpriv->LedStrategy) {
case SW_LED_MODE0: