Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/iwh/iwh.c
          +++ new/usr/src/uts/common/io/iwh/iwh.c
↓ open down ↓ 1791 lines elided ↑ open up ↑
1792 1792          }
1793 1793  }
1794 1794  
1795 1795  /* ARGSUSED */
1796 1796  static ieee80211_node_t *
1797 1797  iwh_node_alloc(ieee80211com_t *ic)
1798 1798  {
1799 1799          iwh_amrr_t *amrr;
1800 1800  
1801 1801          amrr = kmem_zalloc(sizeof (iwh_amrr_t), KM_SLEEP);
1802      -        if (NULL == amrr) {
1803      -                cmn_err(CE_WARN, "iwh_node_alloc(): "
1804      -                    "failed to allocate memory for amrr structure\n");
1805      -                return (NULL);
1806      -        }
1807 1802  
1808 1803          iwh_amrr_init(amrr);
1809 1804  
1810 1805          return (&amrr->in);
1811 1806  }
1812 1807  
1813 1808  static void
1814 1809  iwh_node_free(ieee80211_node_t *in)
1815 1810  {
1816 1811          ieee80211com_t *ic;
↓ open down ↓ 4786 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX