From nobody Thu Mar 02 15:12:50 2023 X-Original-To: dev-commits-src-all@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 4PSF364vMWz3vvt3; Thu, 2 Mar 2023 15:12: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 4PSF3648W0z4Kpw; Thu, 2 Mar 2023 15:12:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677769970; 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=z2TbIqIcLHwXMQfD7rXf98NbU5/FONxLXQw4QQrCtYk=; b=rJ2TFUyc8L3ifdMD0c9xe9EnvBWnLvL0KO4HlpmEX7sZlhIsVWYpy5Z9sttWBaypN4+k4w 1+i7ckqTHr5JQoe/nEnfbgdCph1MHOLQvJHpQDfdZYVrw4l4weQ3lEQBU4+knajHGpXUB2 yhveJH/qWYQBz3mxldTMnNDOO6e5mZvpoVCy+/yF5/YoCQGbVF55axjL++VVErL85BPQhj KZN/HLE4pZNMnbaqLjjJ8G9Beq4sFlyMTqnQr7zfHpLQWn/IcOeli+yYmcVlbzSyxYlwiv 39dv9qjeyoHZeA9eW0tQYIeqipw+SyYdBZJsJHFq6AP6QYs/6wlgsp45k2szqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677769970; 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=z2TbIqIcLHwXMQfD7rXf98NbU5/FONxLXQw4QQrCtYk=; b=wJ4qpnOjHacnv/vAgg6Yz5T9JVuqJraRVDzmptkJXxwJIQ08f//3PNpdiWgbvkNZ7Z33MK yNNEkZYoiGVfAvmfMd1HyedTET5YgVZR2NjSUiChmtMwsqb8qYcgsMun0qNYKWSSldggS7 rfjEzEcYhDWv3g5lTQm34ABiaa3Xw6juLASn0yKy3JfWTO+p3LDgiXXLKCXgFH0YAAwFLm qokwYEmVvKshzewcw+qsVmlGfN+4GgdUjI6NZzNqBP6XeJp32PyVJHwgNfpxFXVFQmz8i8 FpDYaPCgVBTOu6Z9jF+gSaz+fgkHGohP5pNmd4NOLOVVh1bfrlBkm3Jm8lBtjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677769970; a=rsa-sha256; cv=none; b=P0buO734Kg80rXlId6RuNvfyEl7cKIvb27bsaXm3AFqkRKAahsWNsPldU++k40aoOOeOa8 MUAE8qJBaFDYt/RzZutaAX+q9MkAJ2LB3+TLvgHHDWyrujiH8CjJ1KWG8IjMnR/YyOt53t EEPA4mZW0d9CzoIhkx662nHYNfet8+vSoq40RLZZKEzGPCvJRqjOsveJZQoqV5087OO78g 784JI93c4/IgYGwneWC7pzHKbMH3lN+LGcN0lOJQvDDJEtqRJNZN4mi8Qx/1rODr0PbH2M c41Mjp/ZAoLCPLngWiKvM6o8lRjVeXAheEXGd4qfO7LmTx9yCHcmpeg+nEZxqg== 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 4PSF36310MzLNG; Thu, 2 Mar 2023 15:12: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 322FCo3f038098; Thu, 2 Mar 2023 15:12:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 322FCosF038097; Thu, 2 Mar 2023 15:12:50 GMT (envelope-from git) Date: Thu, 2 Mar 2023 15:12:50 GMT Message-Id: <202303021512.322FCosF038097@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0715ec7eb475 - main - usbconfig: Remove useless return at the end of void function List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0715ec7eb4759489b68b651a205922a6564ed798 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0715ec7eb4759489b68b651a205922a6564ed798 commit 0715ec7eb4759489b68b651a205922a6564ed798 Author: Elyes Haouas AuthorDate: 2023-03-02 14:59:07 +0000 Commit: Warner Losh CommitDate: 2023-03-02 15:01:39 +0000 usbconfig: Remove useless return at the end of void function Signed-off-by: Elyes Haouas Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/656 --- usr.sbin/usbconfig/dump.c | 7 ------- usr.sbin/usbconfig/usbconfig.c | 5 ----- 2 files changed, 12 deletions(-) diff --git a/usr.sbin/usbconfig/dump.c b/usr.sbin/usbconfig/dump.c index 4a52ab9fd85e..84de721a4fc9 100644 --- a/usr.sbin/usbconfig/dump.c +++ b/usr.sbin/usbconfig/dump.c @@ -264,7 +264,6 @@ dump_extra(struct libusb20_me_struct *str, const char *plevel) } printf("\n"); } - return; } static void @@ -276,7 +275,6 @@ dump_endpoint(struct libusb20_device *pdev, edesc = &ep->desc; LIBUSB20_ENDPOINT_DESC(DUMP3, edesc); dump_extra(&ep->extra, " " " " " "); - return; } static void @@ -294,7 +292,6 @@ dump_iface(struct libusb20_device *pdev, printf("\n Endpoint %u\n", z); dump_endpoint(pdev, iface->endpoints + z); } - return; } void @@ -353,7 +350,6 @@ dump_be_quirk_names(struct libusb20_backend *pbe) printf("%s\n", q.quirkname); } printf("\n"); - return; } void @@ -385,7 +381,6 @@ dump_be_dev_quirks(struct libusb20_backend *pbe) } } printf("\n"); - return; } void @@ -395,7 +390,6 @@ dump_device_desc(struct libusb20_device *pdev) ddesc = libusb20_dev_get_device_desc(pdev); LIBUSB20_DEVICE_DESC(DUMP0, ddesc); - return; } void @@ -444,7 +438,6 @@ dump_config(struct libusb20_device *pdev, uint8_t all_cfg) printf("\n"); free(pcfg); } - return; } void diff --git a/usr.sbin/usbconfig/usbconfig.c b/usr.sbin/usbconfig/usbconfig.c index 81112d957bbb..06aafc06cde6 100644 --- a/usr.sbin/usbconfig/usbconfig.c +++ b/usr.sbin/usbconfig/usbconfig.c @@ -182,7 +182,6 @@ be_dev_remove_quirk(struct libusb20_backend *pbe, if (error) { fprintf(stderr, "Removing quirk '%s' failed, continuing.\n", str); } - return; } static void @@ -205,7 +204,6 @@ be_dev_add_quirk(struct libusb20_backend *pbe, if (error) { fprintf(stderr, "Adding quirk '%s' failed, continuing.\n", str); } - return; } static uint8_t @@ -312,7 +310,6 @@ reset_options(struct options *opt) if (opt->buffer) free(opt->buffer); memset(opt, 0, sizeof(*opt)); - return; } static void @@ -542,8 +539,6 @@ flush_command(struct libusb20_backend *pbe, struct options *opt) } done: reset_options(opt); - - return; } int