Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1939529ybz; Sat, 18 Apr 2020 11:43:13 -0700 (PDT) X-Google-Smtp-Source: APiQypJjj7c3+HrpzNchCVYIA7Pu4BdME3YGue10JjBO4/Eo+0QeAAAw3AFFg8FFCJFLjPQO8gjA X-Received: by 2002:a50:eac7:: with SMTP id u7mr8010579edp.190.1587235392945; Sat, 18 Apr 2020 11:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587235392; cv=none; d=google.com; s=arc-20160816; b=fjkyviJnDvhjFQdviinGcp98MRxtopnx5yTWXVs7dRI992+5lJjnOuZR8hcheI2eu6 N98RhPLtQtj/tv4OWWvIxOBrU+vcdz11olz16xEjVrm5+heSiFd3Np+INQcoNWAQB5zY r8dtDRsdkdn1nDGWmUcRFbbtBeGMjGG68wroDuTveDclcGdeasJGwqZyHC8Bw3Wt5hVZ cWFq004VjGjobE70nYCUEuRzCv5D5d8veshnCNaS0ptnvlqtMIAkHRFkggSWu/Hjd32h Q8AnpHdAFrHYDMYG5DABo1XjgqZ94+r1KCq9zHVtuAuKHKezqF8QIXbA8ZxfszT/sA8N QuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8++U0J0JftLda//wkFlmbDic7vW6wvPQj9vRP451qyE=; b=ogl7Ujhp5T8SFU+ZTD11+jQagOcdl3EFQ5eM2bpGV8l+uND8N/Z0Z3SSkmlDS3z52/ uMJyhNlDTKZZdPRSyX4+4eYoneRILjwfzMcQqRijFmIIWau84XhyIRi/5ketdTPfB/29 Y4gm3w1hxnNtKzUW8O2hszM5ysnRkc75LWmfMTbfX6URELtDYa1nscEfWyNXPomoCqLN CE91vHRi+HdRaUfXaT7BN902aA/TyKVXsi/+gNbkQh7qWMwhVmZfxRA0tDmJuzUmqbr6 p3bujfD8X2yPELEyWk6gFZreKbJY6IhuoMYprLYVgdSOqMRRx9mU/gL+/CGKTmeJS1wi IMOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pyHV1Yju; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs10si6816718edb.429.2020.04.18.11.42.50; Sat, 18 Apr 2020 11:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pyHV1Yju; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728109AbgDRSl1 (ORCPT + 99 others); Sat, 18 Apr 2020 14:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726408AbgDRSlS (ORCPT ); Sat, 18 Apr 2020 14:41:18 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 917EFC0610D6; Sat, 18 Apr 2020 11:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=8++U0J0JftLda//wkFlmbDic7vW6wvPQj9vRP451qyE=; b=pyHV1YjuYgoOSvT5iNE2Y7QesB NXrQxVgUayq4HjgeqKsk2tapY3tZ0T5adrg2tRGVb9UDxjDW8Ymr23ZQvkVi+4TN/ycZwkIUkaudG oGMqI5Zd6s+C1gyru6NOrS5ZFX1JqPWuYEb45qk0a5RAHpEztnjpgk8xMtaZ2YEB2mXtj14HUzOUk LVAd8pg4/P6e1JpzKE3ulBSzOtFhS8JXHt+oL461ce4TL035IHm65XTXUhN54RnOcQ2jZv7YhSCS+ V6nVFKIksP8CDgK7V6ubm5iolAEN2qiHG681gjIL3NBvd9hAfq4bMBMyPZ7R3p3jHd0ZxUtJLl1rc SIUUC5lg==; Received: from [2601:1c0:6280:3f0::19c2] (helo=smtpauth.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPsP0-0007rZ-CC; Sat, 18 Apr 2020 18:41:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Linus Torvalds , Andrew Morton , Alexander Viro , linux-fsdevel@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, "J. Bruce Fields" , Chuck Lever , linux-nfs@vger.kernel.org, Johannes Berg , Dan Williams , Vishal Verma , Dave Jiang , linux-nvdimm@lists.01.org, "Martin K. Petersen" , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, Zzy Wysm Subject: [PATCH 5/9] usb: fix empty-body warning in sysfs.c Date: Sat, 18 Apr 2020 11:41:07 -0700 Message-Id: <20200418184111.13401-6-rdunlap@infradead.org> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200418184111.13401-1-rdunlap@infradead.org> References: <20200418184111.13401-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix gcc empty-body warning when -Wextra is used: ../drivers/usb/core/sysfs.c: In function ‘usb_create_sysfs_intf_files’: ../drivers/usb/core/sysfs.c:1266:3: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ; /* We don't actually care if the function fails. */ ^ Signed-off-by: Randy Dunlap Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Cc: Linus Torvalds Cc: Andrew Morton --- drivers/usb/core/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200327.orig/drivers/usb/core/sysfs.c +++ linux-next-20200327/drivers/usb/core/sysfs.c @@ -1263,7 +1263,7 @@ void usb_create_sysfs_intf_files(struct if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS)) alt->string = usb_cache_string(udev, alt->desc.iInterface); if (alt->string && device_create_file(&intf->dev, &dev_attr_interface)) - ; /* We don't actually care if the function fails. */ + do_empty(); /* We don't actually care if the function fails. */ intf->sysfs_files_created = 1; }