From nobody Mon Dec 20 10:47:50 2021 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CD41618F83B9; Mon, 20 Dec 2021 10:47:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHbs241Qqz4WR2; Mon, 20 Dec 2021 10:47:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69BA61500B; Mon, 20 Dec 2021 10:47:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BKAlo1f074520; Mon, 20 Dec 2021 10:47:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BKAlo9n074519; Mon, 20 Dec 2021 10:47:50 GMT (envelope-from git) Date: Mon, 20 Dec 2021 10:47:50 GMT Message-Id: <202112201047.1BKAlo9n074519@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: ac5552473050 - stable/13 - pcf8591: remove write-only variables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ac5552473050e2695a4706ac61b44867a0cc6311 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639997270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/9wGx5Ar2PM1dhMY4pa6mSOEaBUGuxTgkAfExybLcBY=; b=N7PP7dbf0WJMOEUPBZDsO3KMpJF4RaoW9fFsO3zZfLMnJD58zww8Eeyoumw05nMWd0vh/O 5iRCXE4AD5KfwGSt1ULCgeqmK8+n596AvG0JpJa4eiak72Ib2x4W2wkWWWZKIxwme711qN jaTjB0xcyX5yNzG4mDAuZY36M9FrO0QicKnoGA9k7URSrAdNJlrslm505hmNdzBLz5LZuO XTIWkGKvfzLgWIbXVwnsYMSC6ycH1boJPkVvOVBVG56ufBF8FzeryI9diIT37qA7152ZYj QtRo+rJAZf9OeBYDri2GBG//9iRDzFLUbQXRIC1qKfS6/vD3q3f6WHNjC25eXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639997270; a=rsa-sha256; cv=none; b=p+X2Aow+c/BL0xckiBoKdtkzg8YgOnuu0lKuweBk1ZwOZJMGvVU+IJbfgFfOc4NuxcjKrm XTj8TsZ0IGaniltSa5Bnbe6vXjYZKzcK3hFUw7L1nk7uJ4InI9HYIvKFYwrSQMMH5tx51s V2hsmnBQYzThRz70Ft//OCq1Du/ELRREi1euOqetfqa01qqjjk3/e+6Qo9TWqJeNBY7KGV Z3jj9Y3Q6dpzdhzwm4+mEqFT+XktgpXg8bhLvSHV7fv2ULXte6Jhm2K1CcC0ImXETudPyJ KA6Bq6ACb1WS1tTIyObPzVjnkJJr/fo2MIt98Z84AF45igj/+thNcl0Y76voQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=ac5552473050e2695a4706ac61b44867a0cc6311 commit ac5552473050e2695a4706ac61b44867a0cc6311 Author: Andriy Gapon AuthorDate: 2021-12-13 11:10:12 +0000 Commit: Andriy Gapon CommitDate: 2021-12-20 10:47:38 +0000 pcf8591: remove write-only variables (cherry picked from commit b416345d5b13c77d82708cab94f43cb6144fbaf7) --- sys/dev/iicbus/pcf8591.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/iicbus/pcf8591.c b/sys/dev/iicbus/pcf8591.c index ff769b368d91..5bae3f0f272c 100644 --- a/sys/dev/iicbus/pcf8591.c +++ b/sys/dev/iicbus/pcf8591.c @@ -141,14 +141,12 @@ pcf8591_select_channel(device_t dev, int channel) static int pcf8591_channel_sysctl(SYSCTL_HANDLER_ARGS) { - struct pcf8591_softc *sc; device_t dev; int error, channel, val; uint8_t reading; dev = arg1; channel = arg2; - sc = device_get_softc(dev); if (req->oldptr != NULL) { error = pcf8591_select_channel(dev, channel); @@ -173,7 +171,6 @@ pcf8591_start(void *arg) struct sysctl_oid_list *tree; struct sysctl_oid *inputs_node; struct sysctl_oid_list *inputs; - int error; sc = arg; dev = sc->sc_dev; @@ -188,7 +185,7 @@ pcf8591_start(void *arg) sc->sc_cfg = 0; sc->sc_output = 0; sc->sc_ch_count = 4; - error = pcf8591_set_config(dev); + (void)pcf8591_set_config(dev); ctx = device_get_sysctl_ctx(dev); tree_node = device_get_sysctl_tree(dev);