Print this page
10886 smatch debug macro cleanup in usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/rwn/rt2860.c
          +++ new/usr/src/uts/common/io/rwn/rt2860.c
   1    1  /*
   2    2   * Copyright 2017 Gary Mills
   3    3   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   4    4   * Use is subject to license terms.
   5      - * Copyright (c) 2018, Joyent, Inc.
        5 + * Copyright 2019 Joyent, Inc.
   6    6   */
   7    7  
   8    8  /*
   9    9   * Copyright (c) 2007, 2008
  10   10   *      Damien Bergamini <damien.bergamini@free.fr>
  11   11   *
  12   12   * Permission to use, copy, modify, and distribute this software for any
  13   13   * purpose with or without fee is hereby granted, provided that the above
  14   14   * copyright notice and this permission notice appear in all copies.
  15   15   *
↓ open down ↓ 50 lines elided ↑ open up ↑
  66   66  #define RT2860_DBG_RADIO        (1 << 9)
  67   67  #define RT2860_DBG_RESUME       (1 << 10)
  68   68  #define RT2860_DBG_MSG          (1 << 11)
  69   69  
  70   70  uint32_t rt2860_dbg_flags = 0x0;
  71   71  
  72   72  #ifdef DEBUG
  73   73  #define RWN_DEBUG \
  74   74          rt2860_debug
  75   75  #else
  76      -#define RWN_DEBUG
       76 +#define RWN_DEBUG(...) (void)(0)
  77   77  #endif
  78   78  
  79   79  static void *rt2860_soft_state_p = NULL;
  80   80  static uint8_t rt2860_fw_bin [] = {
  81   81  #include "fw-rt2860/rt2860.ucode"
  82   82  };
  83   83  
  84   84  static const struct ieee80211_rateset rt2860_rateset_11b =
  85   85          { 4, { 2, 4, 11, 22 } };
  86   86  
↓ open down ↓ 3110 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX