From patchwork Wed Jan 29 12:33:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Dean X-Patchwork-Id: 13953729 Received: from sonic306-1.consmr.mail.bf2.yahoo.com (sonic306-1.consmr.mail.bf2.yahoo.com [74.6.132.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3B0D10E5 for ; Wed, 29 Jan 2025 12:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.6.132.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738154728; cv=none; b=cF31IRcNlGGgQG/u24nJldV5+5lAa8IULaNrj+4gngmYPvOt/WAdmRqlpwM/mcju9H0Ho58u7m2os/+iH74mjjR7V7yf4EqaUvT3tk/KeQ7x04nyO3Xll4peNnvlFIx2CZoDqzV9GgNvU2UUvHwpBXAULY2M4btpGjjVHQbheZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738154728; c=relaxed/simple; bh=nZO1wYye7LlBVRlHKDF1aPDPsYxWawpZC+Vw8ihpqek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:References; b=ESDzR/U5Vx2d2Sqn+pYi4hQb8oylnX7le/tMDD9NORV7JB5enBXxXLvDJASz9HEDEyMpfWUmn8EpHUX0nUs/5k8kPU+Xzdsznjxn3X5ujFRpKbVgOiYyYtc2L8VwmKQcvIPpK57cw4ToIwrutdjey+U/d0riGKdugUPpZK9Xzhg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com; spf=pass smtp.mailfrom=yahoo.com; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b=Vd8ljhL3; arc=none smtp.client-ip=74.6.132.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="Vd8ljhL3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738154719; bh=Jj3o2NnuV+nc0k8BMVD9R5sl0D3ymPcnehOXjzM1RjE=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=Vd8ljhL3T6whR8efu8UrLVDHBCrxDLy58lij0EMzfoMt0DLL4Nv8UZJpEldnAN93bu191NOz1jj7V8UDCSdcB8yauPWSO8v3P8LY/E4nLd38lLpjxhFx8jpW9bSphhI67bMEXcg8+iYqip84/5xiWpfoZLnSLdG08LKCExGRi1d3F3smJWTLxUSyVJQvXMBngMKqTa6aSKdVsvXeXXhaUBlGu+/eeSzelzm2NOJwiaNL/MW1t+qrcfpnxURIFdT+O+jemLujMdMti+H7LTs/0UlI8AxVIRnzHwMweMalJEk/wgry9xqxe53Px3jwY+Dp55Vm1AramkQYUehnj1T9Xw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738154719; bh=EGAAR/wJMRFRgH3ur73XtmQzknnZGyXyOP9V6zQPpPe=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=H/paht5CcX4Q/+U0oPwvLs8FnFGlEy+e4Pw9KJ4Zd4enW/pNTHrJ93iwrS88FXi9BV78VNY88ez7ZPGcqyHURJ8oCDaZlHhiUPYCHajuE0sd0OHmlHuqbo79BrG7jmHgg9C267XAarjc+oaWRnJXqXS5JVKh9TPGdTSogZLUWb44GZoVxsu2J0KAnLJMXkrpIc/xNRRKK43o9z2zlO89B24LHq0HFyAHp6L9+DC2J258ymYCVvCGceLiqOppW+cqYcm3HwF24xbM44O2U8aJbBkx8X31wN8wjUzsL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o6e3SlXJDBtMcczkKQe_HhRd5Pwg.Hrn LHwFx3bP6qMlhkQUy5maY3qVVpLTCH81MGAAH_QLYU_ulojCa8AKTc3g7H4ldZhI0z4NNZqEcnWw 5OoQ88PLUDmkACMe1X_0zW_6T7fNXOetw_PhJdGhbbV5axJ9OTdfgOOKFvd0VCqn367EZlu3_xiM Ti6OoTyGHle.FVx7uXnSbSOXGv5DJO6PjaA-- X-Sonic-MF: X-Sonic-ID: 6e0891a3-ecc6-4064-889b-597186bf5776 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Wed, 29 Jan 2025 12:45:19 +0000 Received: by hermes--production-ir2-c694d79d9-fn2jw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9e4b96c7d03ad5fa13685a6b7c128c9e; Wed, 29 Jan 2025 12:35:11 +0000 (UTC) From: deaner92@yahoo.com To: luiz.dentz@gmail.com Cc: deaner92@yahoo.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, markus.elfring@web.de Subject: [PATCH] Bluetooth: Fix code style warning Date: Wed, 29 Jan 2025 13:33:30 +0100 Message-ID: <20250129123330.391567-2-deaner92@yahoo.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20250129123330.391567-2-deaner92.ref@yahoo.com> From: Jeremy Clifton Output of checkpatch shows warning: drivers/bluetooth/bfusb.c:368: WARNING: braces {} are not necessary for single statement blocks Remove braces for single line statement. Signed-off-by: Jeremy Clifton --- drivers/bluetooth/bfusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index cab93935cc7f..0d6ad50da046 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c @@ -365,9 +365,8 @@ static void bfusb_rx_complete(struct urb *urb) buf += 3; } - if (count < len) { + if (count < len) bt_dev_err(data->hdev, "block extends over URB buffer ranges"); - } if ((hdr & 0xe1) == 0xc1) bfusb_recv_block(data, hdr, buf, len);