From: Kay Sievers Date: Tue, 7 Sep 2010 06:24:12 +0000 (+0200) Subject: scsi_id: fix compiler warnings X-Git-Tag: 174~340 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=cff2f9a3c854fa13067477c797ba926ebcf7dede scsi_id: fix compiler warnings --- diff --git a/extras/scsi_id/scsi_serial.c b/extras/scsi_id/scsi_serial.c index 6f5da37f7..516a6f16c 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;