mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-17 05:40:54 +00:00
scsi_id: fix compiler warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user