From c495e407d8d8566e03be71b076b431e343654a88 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Tue, 15 Oct 2002 11:19:46 +0000 Subject: [PATCH] trivial synatx git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@51 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/atacmds.c | 6 ++---- sm5/atacmds.cpp | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sm5/atacmds.c b/sm5/atacmds.c index bc575d917..84d2bdcfc 100644 --- a/sm5/atacmds.c +++ b/sm5/atacmds.c @@ -1,4 +1,4 @@ -// $Id: atacmds.c,v 1.6 2002/10/15 08:58:40 ballen4705 Exp $ +// $Id: atacmds.c,v 1.7 2002/10/15 11:19:46 ballen4705 Exp $ /* * atacmds.c * @@ -373,10 +373,8 @@ int ataDisableAutoOffline (int device ) int ataSmartStatus (int device ){ unsigned char parms[4] = { WIN_SMART, 0, SMART_STATUS, 0}; - if (ioctl ( device , HDIO_DRIVE_CMD, &parms) != 0) - { + if (ioctl ( device , HDIO_DRIVE_CMD, &parms)) return -1; - } return 0; } diff --git a/sm5/atacmds.cpp b/sm5/atacmds.cpp index 8ab782193..48c4110fe 100644 --- a/sm5/atacmds.cpp +++ b/sm5/atacmds.cpp @@ -1,4 +1,4 @@ -// $Id: atacmds.cpp,v 1.6 2002/10/15 08:58:40 ballen4705 Exp $ +// $Id: atacmds.cpp,v 1.7 2002/10/15 11:19:46 ballen4705 Exp $ /* * atacmds.c * @@ -373,10 +373,8 @@ int ataDisableAutoOffline (int device ) int ataSmartStatus (int device ){ unsigned char parms[4] = { WIN_SMART, 0, SMART_STATUS, 0}; - if (ioctl ( device , HDIO_DRIVE_CMD, &parms) != 0) - { + if (ioctl ( device , HDIO_DRIVE_CMD, &parms)) return -1; - } return 0; } -- GitLab