diff options
author | John Levon <john.levon@joyent.com> | 2019-04-03 10:34:12 -0700 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-04-11 23:25:44 -0700 |
commit | 78a53e201c2691debc57ede24c524118299ab18c (patch) | |
tree | 0a35715b6f2c8b6489cc53defd936da53cfc9ad4 /usr/src/uts | |
parent | ef623aa14b0dc34c6b9edb213cbcda88461ecfc3 (diff) | |
download | illumos-joyent-78a53e201c2691debc57ede24c524118299ab18c.tar.gz |
10687 Service routine cast changes need smatch fixes
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts')
-rw-r--r-- | usr/src/uts/common/inet/ip/spdsock.c | 4 | ||||
-rw-r--r-- | usr/src/uts/common/io/ppp/sppp/sppp.c | 3 | ||||
-rw-r--r-- | usr/src/uts/common/io/softmac/softmac_dev.c | 5 | ||||
-rw-r--r-- | usr/src/uts/common/io/softmac/softmac_fp.c | 8 |
4 files changed, 14 insertions, 6 deletions
diff --git a/usr/src/uts/common/inet/ip/spdsock.c b/usr/src/uts/common/inet/ip/spdsock.c index 5911b45770..1ae2279dcf 100644 --- a/usr/src/uts/common/inet/ip/spdsock.c +++ b/usr/src/uts/common/inet/ip/spdsock.c @@ -21,7 +21,7 @@ /* * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved. - * Copyright 2017 Joyent, Inc. + * Copyright 2019, Joyent, Inc. */ #include <sys/param.h> @@ -3609,7 +3609,7 @@ spdsock_wsrv(queue_t *q) while ((mp = getq(q)) != NULL) { if (ipsec_loaded(ipss)) { - spdsock_wput(q, mp); + (void) spdsock_wput(q, mp); if (ss->spdsock_dump_req != NULL) return (0); } else if (!ipsec_failed(ipss)) { diff --git a/usr/src/uts/common/io/ppp/sppp/sppp.c b/usr/src/uts/common/io/ppp/sppp/sppp.c index 4cf02abe2e..1d9e9fed70 100644 --- a/usr/src/uts/common/io/ppp/sppp/sppp.c +++ b/usr/src/uts/common/io/ppp/sppp/sppp.c @@ -4,6 +4,7 @@ * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * Copyright (c) 2016 by Delphix. All rights reserved. + * Copyright 2019, Joyent, Inc. * * Permission to use, copy, modify, and distribute this software and its * documentation is hereby granted, provided that the above copyright @@ -1842,7 +1843,7 @@ sppp_lrsrv(queue_t *q) mblk_t *mp; while ((mp = getq(q)) != NULL) - sppp_lrput(q, mp); + (void) sppp_lrput(q, mp); return (0); } diff --git a/usr/src/uts/common/io/softmac/softmac_dev.c b/usr/src/uts/common/io/softmac/softmac_dev.c index 3b9c76a7e2..60415e3422 100644 --- a/usr/src/uts/common/io/softmac/softmac_dev.c +++ b/usr/src/uts/common/io/softmac/softmac_dev.c @@ -23,6 +23,9 @@ * Use is subject to license terms. */ +/* + * Copyright 2019, Joyent, Inc. + */ #include <sys/types.h> #include <inet/common.h> @@ -662,7 +665,7 @@ softmac_drv_wsrv(queue_t *wq) */ sup->su_tx_inprocess++; mutex_exit(&sup->su_mutex); - dld_wsrv(wq); + (void) dld_wsrv(wq); mutex_enter(&sup->su_mutex); if (--sup->su_tx_inprocess == 0) cv_signal(&sup->su_cv); diff --git a/usr/src/uts/common/io/softmac/softmac_fp.c b/usr/src/uts/common/io/softmac/softmac_fp.c index 8286ac4013..174a7b2e86 100644 --- a/usr/src/uts/common/io/softmac/softmac_fp.c +++ b/usr/src/uts/common/io/softmac/softmac_fp.c @@ -24,6 +24,10 @@ */ /* + * Copyright 2019, Joyent, Inc. + */ + +/* * Softmac data-path switching: * * - Fast-path model @@ -764,7 +768,7 @@ softmac_wput_single_nondata(softmac_upper_t *sup, mblk_t *mp) * operation is is serialized by softmac_wput_nondata_task(). */ if (sup->su_mode != SOFTMAC_FASTPATH) { - dld_wput(sup->su_wq, mp); + (void) dld_wput(sup->su_wq, mp); return; } @@ -986,7 +990,7 @@ softmac_wput_data(softmac_upper_t *sup, mblk_t *mp) * process of switching. */ if (sup->su_mode != SOFTMAC_FASTPATH) - dld_wput(sup->su_wq, mp); + (void) dld_wput(sup->su_wq, mp); else (void) softmac_fastpath_wput_data(sup, mp, (uintptr_t)NULL, 0); } |