Skip to content
Snippets Groups Projects
Commit 503da0fb authored by shattered's avatar shattered
Browse files

Don't set up databuf and datalen -- there's no data transfer in IMMEDIATE_OFFLINE.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2469 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 51e2ba5a
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "os_netbsd.h" #include "os_netbsd.h"
#include <unistd.h> #include <unistd.h>
const char *os_XXXX_c_cvsid = "$Id: os_netbsd.cpp,v 1.20 2008/03/03 22:29:02 shattered Exp $" \ const char *os_XXXX_c_cvsid = "$Id: os_netbsd.cpp,v 1.21 2008/03/04 17:54:27 shattered Exp $" \
ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_NETBSD_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID; ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_NETBSD_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID;
/* global variable holding byte count of allocated memory */ /* global variable holding byte count of allocated memory */
...@@ -282,8 +282,6 @@ ata_command_interface(int fd, smart_command_set command, int select, char *data) ...@@ -282,8 +282,6 @@ ata_command_interface(int fd, smart_command_set command, int select, char *data)
req.flags = ATACMD_READREG; req.flags = ATACMD_READREG;
req.features = ATA_SMART_IMMEDIATE_OFFLINE; /* XXX missing from wdcreg.h */ req.features = ATA_SMART_IMMEDIATE_OFFLINE; /* XXX missing from wdcreg.h */
req.command = WDCC_SMART; req.command = WDCC_SMART;
req.databuf = (char *)inbuf;
req.datalen = sizeof(inbuf);
req.cylinder = WDSMART_CYL; req.cylinder = WDSMART_CYL;
req.sec_num = select; req.sec_num = select;
req.sec_count = 1; req.sec_count = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment