diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index efb90e173b8091eeb618c8344173592f5ad672c5..7fafd6fc83eecbba6581ce87e2d84b4dade8a6ee 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -182,12 +182,8 @@ int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count) /* Get the lov name */ rc = ioctl(fd, OBD_IOC_GETNAME, (void *) lov_name); if (rc) { - if (errno != ENOTTY) { - rc = errno; - err_msg("error: can't get lov name."); - } else { - rc = 0; - } + rc = errno; + err_msg("error: can't get lov name."); return rc; }