Skip to content

Commit

Permalink
10873 ecpp: comparison between pointer and integer
Browse files Browse the repository at this point in the history
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed May 16, 2019
1 parent 0dcef4d commit 61d4f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/src/uts/common/io/ecpp.c
Expand Up @@ -5943,7 +5943,7 @@ dma8237_dma_start(struct ecppunit *pp)

ASSERT(chn <= DMAE_CH3 &&
pp->dma_cookie.dmac_size != 0 &&
pp->dma_cookie.dmac_address != NULL);
pp->dma_cookie.dmac_address != 0);

/* At this point Southbridge has not yet asserted DREQ */

Expand Down Expand Up @@ -6016,7 +6016,7 @@ x86_dma_start(struct ecppunit *pp)
chn = pp->uh.x86.chn;
ASSERT(chn <= DMAE_CH3 &&
pp->dma_cookie.dmac_size != 0 &&
pp->dma_cookie.dmac_address != NULL);
pp->dma_cookie.dmac_address != 0);
bzero(&dmaereq, sizeof (struct ddi_dmae_req));
dmaereq.der_command =
(pp->dma_dir & DDI_DMA_READ) ? DMAE_CMD_READ : DMAE_CMD_WRITE;
Expand Down

0 comments on commit 61d4f4d

Please sign in to comment.