10723 hci1394: NULL pointer errors

Review Request #1689 - Created April 10, 2019 and updated

Information
Toomas Soome
illumos-gate
10723
5df818f...
Reviewers
general
../../common/io/1394/adapters/hci1394_ixl_update.c: In function 'hci1394_ixl_update_prep_recv_pkt':
../../common/io/1394/adapters/hci1394_ixl_update.c:1013:47: error: comparison between pointer and integer [-Werror]
  if ((new_xfer_pkt_ixlp->ixl_buf.ixldmac_addr == NULL) ||
                                               ^~
../../common/io/1394/adapters/hci1394_ixl_update.c: In function 'hci1394_ixl_update_prep_recv_buf':
../../common/io/1394/adapters/hci1394_ixl_update.c:1152:47: error: comparison between pointer and integer [-Werror]
  if ((new_xfer_buf_ixlp->ixl_buf.ixldmac_addr == NULL) ||
                                               ^~
../../common/io/1394/adapters/hci1394_ixl_update.c: In function 'hci1394_ixl_update_prep_send_pkt':
../../common/io/1394/adapters/hci1394_ixl_update.c:1261:47: error: comparison between pointer and integer [-Werror]
  if ((new_xfer_pkt_ixlp->ixl_buf.ixldmac_addr == NULL) ||
                                               ^~
../../common/io/1394/adapters/hci1394_ixl_update.c: In function 'hci1394_ixl_update_prep_send_buf':
../../common/io/1394/adapters/hci1394_ixl_update.c:1427:47: error: comparison between pointer and integer [-Werror]
  if ((new_xfer_buf_ixlp->ixl_buf.ixldmac_addr == NULL) ||
                                               ^~

../../common/io/1394/adapters/hci1394_ixl_comp.c: In function 'hci1394_compile_ixl_init':
../../common/io/1394/adapters/hci1394_ixl_comp.c:182:23: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  ctxtp->dma_mem_execp = NULL;
                       ^
../../common/io/1394/adapters/hci1394_ixl_comp.c: In function 'hci1394_set_next_xfer_buf':
../../common/io/1394/adapters/hci1394_ixl_comp.c:2389:11: error: comparison between pointer and integer [-Werror]
  if (bufp == NULL) {
           ^~
../../common/io/1394/adapters/hci1394_ixl_comp.c: In function 'hci1394_alloc_storevalue_dma_mem':
../../common/io/1394/adapters/hci1394_ixl_comp.c:2578:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
cc1: all warnings being treated as errors

  
Robert Mustacchi
Ship It!
Loading...