[U-Boot] clang warning

Jeroen Hofstee jeroen at myspectrum.nl
Tue Oct 28 00:45:27 CET 2014


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


More information about the U-Boot mailing list