mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-24 07:20:56 +07:00
scsi_id: fix compiler warnings
This commit is contained in:
parent
db11b20e41
commit
cff2f9a3c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user