Skip to contentSkip to conversation

hw/scsi/megasas.c: (sdev->id & 0xFF) >> 8

Qemu-devel Markus Armbruster 1 participant 2 messages Jan 30, 2014 – May 16, 2014

lore
Share & tools
lore
#0 lore raw

There are several instances of

    ((sdev->id & 0xFF) >> 8) | (sdev->lun & 0xFF)

or similar. The left operand of | is always 0. Did you intend to shift to the other right?

#1 lore raw

Ping?

Quoted 6 lines · Markus Armbruster

There are several instances of

    ((sdev->id & 0xFF) >> 8) | (sdev->lun & 0xFF)

or similar. The left operand of | is always 0. Did you intend to shift to the other right?