]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/scsi_id/scsi_serial.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / udev / scsi_id / scsi_serial.c
index bc18af05afe9f6b97076a772d220b96d06ab69fb..f007cc6001b8a1c03cace1d7aa93a80baed6d52c 100644 (file)
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
 /*
  * Copyright (C) IBM Corp. 2003
  *
@@ -360,7 +358,7 @@ resend:
 
         retval = ioctl(fd, SG_IO, io_buf);
         if (retval < 0) {
-                if ((errno == EINVAL || errno == ENOSYS) && dev_scsi->use_sg == 4) {
+                if (IN_SET(errno, EINVAL, ENOSYS) && dev_scsi->use_sg == 4) {
                         dev_scsi->use_sg = 3;
                         goto resend;
                 }