diff options
author | Toomas Soome <tsoome@me.com> | 2019-04-27 21:44:23 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-05-16 22:17:51 +0300 |
commit | 0dcef4d473c5c7a38a378de19d7cb1b3a6a9bf6e (patch) | |
tree | f685f8b9dcd7b7f9003e74964e1e7d5d8ed4b751 | |
parent | c5c251eb8213fc6b8474a4e195f3be4adf208bdc (diff) | |
download | illumos-joyent-0dcef4d473c5c7a38a378de19d7cb1b3a6a9bf6e.tar.gz |
10871 st: comparison between pointer and integer
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/scsi/targets/st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/scsi/targets/st.c b/usr/src/uts/common/io/scsi/targets/st.c index 545dd678f4..3fef558d3a 100644 --- a/usr/src/uts/common/io/scsi/targets/st.c +++ b/usr/src/uts/common/io/scsi/targets/st.c @@ -1668,7 +1668,7 @@ st_doattach(struct scsi_device *devp, int (*canwait)()) ASSERT(un->un_rqs->pkt_resid == 0); devp->sd_sense = (struct scsi_extended_sense *)un->un_rqs_bp->b_un.b_addr; - ASSERT(geterror(un->un_rqs_bp) == NULL); + ASSERT(geterror(un->un_rqs_bp) == 0); (void) scsi_setup_cdb((union scsi_cdb *)un->un_rqs->pkt_cdbp, SCMD_REQUEST_SENSE, 0, MAX_SENSE_LENGTH, 0); |