Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3384462lqp; Tue, 26 Mar 2024 07:52:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQd6cgCudQU+FeWF8jxbtk2Z4HqyOhJ2x3V88wAhHmEnaQp7uUWYC0YvRmd6B2mM2gOR5O4j5+nEGrSKrlbIXK+Lq3sO9pV2SWHlmZ3g== X-Google-Smtp-Source: AGHT+IHbUEc5pcCNLOwI9OGwBSCKulMOn7hw0KkXDbOGRv3eq+pqwWlFIeqZEy0u7afgNjVKKdjc X-Received: by 2002:a05:620a:30f:b0:78a:45dc:2086 with SMTP id s15-20020a05620a030f00b0078a45dc2086mr9944897qkm.74.1711464734716; Tue, 26 Mar 2024 07:52:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711464734; cv=pass; d=google.com; s=arc-20160816; b=X6ggmGCQpK2uLeQx1BQy4y8TgtrB/E9OK6vDiK6uqiX7yiETunOt1tOV7RX03sgIIl sPp8B9wn4WsEO+QtTJDBNvoxKNpNyaN2AySsqXNvaRFGXJUR2aZ/OULoswpNyRYEIJZq 7fhUou8c4NuwrrdUU0eVYJ1Lld957mp+J8whureO1Kt04JYYqqBrlEvOIcEb/2CJilN2 Qbu7pG4aWGJWkS9Ie1d+8/4zLmRfSAYs9KZD4AOwdumCBN+LFV3guemKQRRkVHc4B3bE zkuiwr+3EKp2gOoYA8gNSmQuzfCCL7B+KpSW2123uY30K0DI/XgKeydRKtDAZCsUIppv G0sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=NWyDzDrXRgnv2gDghfmcdr9gdoP4HsMe4myUh1lS8aA=; fh=II9vUUBmELQ3QvowChyB4KPULvyxMuNTemDKR5ET184=; b=sKGh3Bljf35yb2rxXAi+awHFm4xq2t9GxoPjatduRhA0FxHxLna0Ujzfui38Yw1DbT vMGXI+Mc5SI3vDCl27zdDjFsBRO6POOelwP/qhQLafxm5FHO0neL3aSMhjTtB5bdhYiT F7rWLEyLIMnR9q5X9UHrF7hgr2KXoV36f9KNBnRR1t2zTWmo+Oh0rmiDdEaX7EB7lOYb cWQnhA7U1mDhPK4+yHY/xq/cC0urJWSo1VyINDVFpuPgYL8r/ATSqj9aTz/DxtfLm2pr lYqKMi/82VCBCr1kkno03yA7jNaOhgM8lUVM6tzsg3Q/mCEnOBPRaBYVo/hT/DHXZeFY c6FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XK+MeDxF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u14-20020a05620a454e00b00789eb47b56bsi8440657qkp.296.2024.03.26.07.52.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:52:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XK+MeDxF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 262BF1C61542 for ; Tue, 26 Mar 2024 14:52:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C5BB13C67E; Tue, 26 Mar 2024 14:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XK+MeDxF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C347013C67A; Tue, 26 Mar 2024 14:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464711; cv=none; b=oWkRkzTInpQvZOVxz8eeYTEOpLgOyFKGxJQxzw58rtRyxStTrOLHCq84dlGNfFy+aINFpicFPTxDuKPfqIR3EVJdxQCyvaNNZscfxfFDEApGM7VIoWETcKIHX6w+wrSlv5AreP/YOewapzORJ7tDAOpLA0fnvfjkwxdX66RFfwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711464711; c=relaxed/simple; bh=sLOSA2H/JQY11OMFy/vZi8SPun9a9NZx8PpmPt3viRc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dWPQ6s4FuKis5Iw1H7gO8llPBCvJUFquK0fb2wg9/5/98PG0lDlfuncwhvPEab5l0VHYldhUJaKWGaBUuL9laAOLmTOVTuBm0+YcE2q1dDbBfQjT2AMWkjULnIg0Gn35xCn7Jqic2MGh1JHOX0UB1ZPTOwBKbAXvNRe25/Rnq/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XK+MeDxF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 940B0C433C7; Tue, 26 Mar 2024 14:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711464711; bh=sLOSA2H/JQY11OMFy/vZi8SPun9a9NZx8PpmPt3viRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XK+MeDxFWZSbU6Ztv/eTdl1O/MnMn2rltqtau5hHB0cLkDe7/0lgQsYebdu+ZMaWj gYfcd/V3fwWCe40+c2Dd/WXqk0Uks4jufr4q4NIftomOghORvFssfU9cEyW+4sam0K fehwCZcCyAVYlqX9wkIjY1swNhL8xblyq1JFo2tHESrKu1L3Eub1YWn6hmkGIfyoNK K6SBdMvai+sEru3XlLS9YUn26FOLy5hihlrzfR6Wq/jaE2RqUK35YdYdGQuoQdRnwI iSMGE/C9kpCESavZGDZLmDtWJNiNcE16ix6ckFvld3zeM9xdIgirEDvF7UyQFVBYUo hgUpqwR97s+Cw== From: Arnd Bergmann To: linux-kbuild@vger.kernel.org, Masahiro Yamada , Sudip Mukherjee Cc: Nicolas Schier , Nathan Chancellor , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 02/12] [v3] parport: mfc3: avoid empty-body warning Date: Tue, 26 Mar 2024 15:51:27 +0100 Message-Id: <20240326145140.3257163-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240326144741.3094687-1-arnd@kernel.org> References: <20240326144741.3094687-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann on m68k builds, the mfc3 driver causes a warning about an empty if() block: drivers/parport/parport_mfc3.c: In function 'control_pc_to_mfc3': drivers/parport/parport_mfc3.c:106:37: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] Remove it in favor of a simpler comment. Acked-by: Sudip Mukherjee Link: https://lore.kernel.org/lkml/20230727122448.2479942-1-arnd@kernel.org/ Signed-off-by: Arnd Bergmann --- v3: no changes, resending v2: fix typo --- drivers/parport/parport_mfc3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/parport/parport_mfc3.c b/drivers/parport/parport_mfc3.c index f4d0da741e85..bb1817218d7b 100644 --- a/drivers/parport/parport_mfc3.c +++ b/drivers/parport/parport_mfc3.c @@ -102,8 +102,7 @@ static unsigned char control_pc_to_mfc3(unsigned char control) ret |= 128; if (control & PARPORT_CONTROL_AUTOFD) /* AUTOLF */ ret &= ~64; - if (control & PARPORT_CONTROL_STROBE) /* Strobe */ - /* Handled directly by hardware */; + /* PARPORT_CONTROL_STROBE handled directly by hardware */ return ret; } -- 2.39.2