Print this page
10139 smatch fixes for usr/src/cmd/stat

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/stat/common/acquire_iodevs.c
          +++ new/usr/src/cmd/stat/common/acquire_iodevs.c
↓ open down ↓ 450 lines elided ↑ open up ↑
 451  451           * don't want to fill the  remaining slots - it is just confusing
 452  452           * if we don that, it makes it look like the filter code is broken.
 453  453           */
 454  454          if ((df->if_nr_names == NULL) || (nr_iodevs != nr_iodevs_orig)) {
 455  455                  /* now insert any iodevs into the remaining slots */
 456  456                  pos = iodevs;
 457  457                  while (pos && nr_iodevs) {
 458  458                          tmp = pos;
 459  459                          pos = pos->is_next;
 460  460  
 461      -                        if (df && df->if_skip_floppy &&
      461 +                        if (df->if_skip_floppy &&
 462  462                              strncmp(tmp->is_name, "fd", 2) == 0)
 463  463                                  continue;
 464  464  
 465  465                          list_del(&iodevs, tmp);
 466  466                          insert_iodev(ss, tmp);
 467  467  
 468  468                          --nr_iodevs;
 469  469                  }
 470  470          }
 471  471  
↓ open down ↓ 653 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX