From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] clang warning
Date: Tue, 28 Oct 2014 00:45:27 +0100 [thread overview]
Message-ID: <544ED917.8020305@myspectrum.nl> (raw)
Hello Nikita,
Commit dc383dd introduces the following clang warning:
drivers/block/dwc_ahsata.c:881:35: warning: use of logical '&&' with
constant operand [-Wconstant-logical-operand]
return readl(&(port_mmio->ssts)) && SATA_PORT_SSTS_DET_MASK;
^
~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/dwc_ahsata.c:881:35: note: use '&' for a bitwise operation
Regards,
Jeroen
next reply other threads:[~2014-10-27 23:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 23:45 Jeroen Hofstee [this message]
2014-10-28 12:58 ` [U-Boot] clang warning Nikita Kiryanov
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=544ED917.8020305@myspectrum.nl \
--to=jeroen@myspectrum.nl \
--cc=u-boot@lists.denx.de \
/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