chiark / gitweb /
scsi_id: fix compiler warnings
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 7 Sep 2010 06:24:12 +0000 (08:24 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 7 Sep 2010 06:24:12 +0000 (08:24 +0200)
extras/scsi_id/scsi_serial.c

index 6f5da37f78a8bd802415141c9822ff2903ebe946..516a6f16c5c791cd0b6dc00c3ee914af5ac55831 100644 (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;