Print this page
3117 aac forgets C isn't math

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/aac/aac.c
          +++ new/usr/src/uts/common/io/aac/aac.c
↓ open down ↓ 3559 lines elided ↑ open up ↑
3560 3560          }
3561 3561  
3562 3562          softs->container_count = count;
3563 3563          AACDB_PRINT(softs, CE_CONT, "?Total %d container(s) found", total);
3564 3564          return (AACOK);
3565 3565  }
3566 3566  
3567 3567  static int
3568 3568  aac_probe_jbod(struct aac_softstate *softs, int tgt, int event)
3569 3569  {
3570      -        ASSERT(AAC_MAX_LD <= tgt < AAC_MAX_DEV(softs));
     3570 +        ASSERT(AAC_MAX_LD <= tgt);
     3571 +        ASSERT(tgt < AAC_MAX_DEV(softs));
3571 3572          struct aac_device *dvp;
3572 3573          dvp = AAC_DEV(softs, tgt);
3573 3574  
3574 3575          switch (event) {
3575 3576          case AAC_CFG_ADD:
3576 3577                  AACDB_PRINT(softs, CE_NOTE,
3577 3578                      ">>> Jbod %d added", tgt - AAC_MAX_LD);
3578 3579                  dvp->flags |= AAC_DFLAG_VALID;
3579 3580                  dvp->type = AAC_DEV_PD;
3580 3581                  break;
↓ open down ↓ 4920 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX