diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-09-07 08:24:12 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-09-07 08:24:12 +0200 |
commit | cff2f9a3c854fa13067477c797ba926ebcf7dede (patch) | |
tree | 3643c43c70db80010810fe63f5f7bf020840c1ad /extras | |
parent | db11b20e416ff390339631b34aac559c8915c68d (diff) |
scsi_id: fix compiler warnings
Diffstat (limited to 'extras')
-rw-r--r-- | extras/scsi_id/scsi_serial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extras/scsi_id/scsi_serial.c b/extras/scsi_id/scsi_serial.c index 6f5da37f78..516a6f16c5 100644 --- a/extras/scsi_id/scsi_serial.c +++ b/extras/scsi_id/scsi_serial.c @@ -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; |