summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ata_id/ata_id.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ata_id/ata_id.c b/src/ata_id/ata_id.c
index 257f494496..846a73b547 100644
--- a/src/ata_id/ata_id.c
+++ b/src/ata_id/ata_id.c
@@ -532,13 +532,8 @@ int main(int argc, char *argv[])
} else {
/* If this fails, then try HDIO_GET_IDENTITY */
if (ioctl(fd, HDIO_GET_IDENTITY, &id) != 0) {
- if (errno == ENOTTY) {
- info(udev, "HDIO_GET_IDENTITY unsupported for '%s'\n", node);
- rc = 2;
- } else {
- err(udev, "HDIO_GET_IDENTITY failed for '%s': %m\n", node);
- rc = 3;
- }
+ info(udev, "HDIO_GET_IDENTITY failed for '%s': %m\n", node);
+ rc = 2;
goto close;
}
}