From: kbuild test robot <lkp@intel.com>
To: Luis de Bethencourt <luisbg@osg.samsung.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
devel@driverdev.osuosl.org, hamohammed.sa@gmail.com,
paul.gortmaker@windriver.com, gregkh@linuxfoundation.org,
gdonald@gmail.com, Luis de Bethencourt <luisbg@osg.samsung.com>,
cristina.opriceana@gmail.com
Subject: Re: [PATCH] staging: rtl8192u: simplify conditional statement
Date: Thu, 15 Oct 2015 23:14:36 +0800 [thread overview]
Message-ID: <201510152354.FK4VM4O0%fengguang.wu@intel.com> (raw)
In-Reply-To: <1444912394-17664-1-git-send-email-luisbg@osg.samsung.com>
[-- Attachment #1: Type: text/plain, Size: 2141 bytes --]
Hi Luis,
[auto build test WARNING on staging/staging-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Luis-de-Bethencourt/staging-rtl8192u-simplify-conditional-statement/20151015-203425
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c: In function 'ieee80211_softmac_scan_syncro_rsl':
>> drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:469:19: warning: comparison of constant '5' with boolean expression is always false [-Wbool-compare]
if(!ieee->state > IEEE80211_LINKED && ieee->sync_scan_hurryup)
^
>> drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:469:19: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
vim +/5 +469 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
453 * new network events, despite for updating the net list,
454 * but we are temporarly 'unlinked' as the driver shall
455 * not filter RX frames and the channel is changing.
456 * So the only situation in witch are interested is to check
457 * if the state become LINKED because of the #1 situation
458 */
459
460 if (ieee->state == IEEE80211_LINKED)
461 goto out;
462 ieee->set_chan(ieee->dev, ch);
463 if(channel_map[ch] == 1)
464 ieee80211_send_probe_requests(ieee);
465
466 /* this prevent excessive time wait when we
467 * need to wait for a syncro scan to end..
468 */
> 469 if(!ieee->state > IEEE80211_LINKED && ieee->sync_scan_hurryup)
470 goto out;
471
472
473 msleep_interruptible_rsl(IEEE80211_SOFTMAC_SCAN_TIME);
474
475 }
476 out:
477 if(ieee->state < IEEE80211_LINKED){
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 51721 bytes --]
prev parent reply other threads:[~2015-10-15 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 12:33 [PATCH] staging: rtl8192u: simplify conditional statement Luis de Bethencourt
2015-10-15 12:56 ` Dan Carpenter
2015-10-15 15:14 ` kbuild test robot [this message]
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=201510152354.FK4VM4O0%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=cristina.opriceana@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gdonald@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hamohammed.sa@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luisbg@osg.samsung.com \
--cc=paul.gortmaker@windriver.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.