scsi_id: fix compiler warnings

This commit is contained in:
Kay Sievers 2010-09-07 08:24:12 +02:00
parent db11b20e41
commit cff2f9a3c8

View File

@ -496,11 +496,12 @@ static int check_fill_0x83_id(struct udev *udev,
* ASSOCIATION must be with the device (value 0)
* or with the target port for SCSI_ID_TGTPORT
*/
if (page_83[1] & 0x30 == 0x10)
if ((page_83[1] & 0x30) == 0x10) {
if (id_search->id_type != SCSI_ID_TGTGROUP)
return 1;
else if ((page_83[1] & 0x30) != 0)
} else if ((page_83[1] & 0x30) != 0) {
return 1;
}
if ((page_83[1] & 0x0f) != id_search->id_type)
return 1;