Print this page
10687 Service routine cast changes need smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ppp/sppp/sppp.c
          +++ new/usr/src/uts/common/io/ppp/sppp/sppp.c
   1    1  /*
   2    2   * sppp.c - Solaris STREAMS PPP multiplexing pseudo-driver
   3    3   *
   4    4   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   5    5   * Use is subject to license terms.
   6    6   * Copyright (c) 2016 by Delphix. All rights reserved.
        7 + * Copyright 2019, Joyent, Inc.
   7    8   *
   8    9   * Permission to use, copy, modify, and distribute this software and its
   9   10   * documentation is hereby granted, provided that the above copyright
  10   11   * notice appears in all copies.
  11   12   *
  12   13   * SUN MAKES NO REPRESENTATION OR WARRANTIES ABOUT THE SUITABILITY OF
  13   14   * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14   15   * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15   16   * PARTICULAR PURPOSE, OR NON-INFRINGEMENT.  SUN SHALL NOT BE LIABLE FOR
  16   17   * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
↓ open down ↓ 1818 lines elided ↑ open up ↑
1835 1836   *    Lower read-side service procedure.  This is run once after the I_LINK
1836 1837   *    occurs in order to clean up any packets that came in while we were
1837 1838   *    transferring in the lower stream.  Otherwise, it's not used.
1838 1839   */
1839 1840  int
1840 1841  sppp_lrsrv(queue_t *q)
1841 1842  {
1842 1843          mblk_t *mp;
1843 1844  
1844 1845          while ((mp = getq(q)) != NULL)
1845      -                sppp_lrput(q, mp);
     1846 +                (void) sppp_lrput(q, mp);
1846 1847          return (0);
1847 1848  }
1848 1849  
1849 1850  /*
1850 1851   * sppp_recv_nondata()
1851 1852   *
1852 1853   * MT-Perimeters:
1853 1854   *    shared inner, shared outer.
1854 1855   *
1855 1856   * Description:
↓ open down ↓ 519 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX