Skip to contentSkip to conversation

&& versus &

DISCUSSION Toralf Förster 2 participants 2 messages Feb 21, 2011 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

Hello,

Im wondering about this line in drivers/watchdog/sch311x_wdt.c:

if (sch311x_sio_inb(sio_config_port, 0x30) && 0x01 == 0)

is this intended ?

Signature · 4 lines
MfG/Kind regards
Toralf Förster

pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
#1 lore raw

Hi Toralf,

Quoted 5 lines

Im wondering about this line in drivers/watchdog/sch311x_wdt.c:

if (sch311x_sio_inb(sio_config_port, 0x30) && 0x01 == 0)

is this intended ?

This is a typo/bug.

Patch created.

Kind regards and thanks,
Wim.