Skip to content

Commit

Permalink
9263 rdc: comparison between pointer and zero character constant
Browse files Browse the repository at this point in the history
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Gordon Ross <gwr@nexenta.com>
  • Loading branch information
tsoome authored and gwr committed Apr 1, 2018
1 parent 73ff8cc commit 6f9a31a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/src/uts/common/avs/ns/rdc/rdc_diskq.c
Expand Up @@ -192,7 +192,7 @@ rdc_open_diskq(rdc_k_info_t *krdc)

mutex_enter(&grp->diskqmutex);
mutexheld++;
if (&urdc->disk_queue[0] == '\0') {
if (urdc->disk_queue[0] == '\0') {
goto fail;
}

Expand Down Expand Up @@ -606,7 +606,7 @@ rdc_read_diskq_header(rdc_k_info_t *krdc)
(void) snprintf(buf, NSC_MAXPATH, "%s:%s", urdc->secondary.intf,
&urdc->secondary.intf[0]);
cmn_err(CE_WARN, "!Disk Queue Header read failed for %s",
&urdc->group_name[0] == '\0' ? buf:
urdc->group_name[0] == '\0' ? buf:
&urdc->group_name[0]);
return (-1);
}
Expand All @@ -626,7 +626,7 @@ rdc_read_diskq_header(rdc_k_info_t *krdc)
(void) snprintf(buf, NSC_MAXPATH, "%s:%s", urdc->secondary.intf,
&urdc->secondary.file[0]);
cmn_err(CE_WARN, "!Disk Queue Header read failed(%d) for %s",
rc, &urdc->group_name[0] == '\0' ? buf :
rc, urdc->group_name[0] == '\0' ? buf :
&urdc->group_name[0]);
return (-1);
}
Expand Down

0 comments on commit 6f9a31a

Please sign in to comment.