From nobody Fri Apr 17 07:44:09 2026 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 44E2F7478 for ; Mon, 23 Feb 2026 00:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771805018; cv=none; b=m4LEoxHuOjW3CIN1JrhlluVOkc4mBtJhqdGLIxaijRL8D5ajgtQ0iUww+I/MQunTHBwvus9CCsMI19ebgQvnCz+O+K4ITQC3MW47vNkVYDSHBEPZCkOmL/gXrC3FlaD/6S/ll8M1Ze+7l1RbdIkFA63aehY+xTyWhQKuRTB3rFE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771805018; c=relaxed/simple; bh=2HDKZUKuSNHMnL/oPVsvvmjnVgL8OxaBMVrbwzxk2cE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YosyKFWRA1ZImSFsBF70jyHteAodxQegBt8cVyrjZjV95Usdm3DzKrLlP0n47agnZECE4D40QSS4aFS/5s+xnkUGbJYDS1cS5l/yvQ3AmQ64ssBH5hVaYBnSBPRTj0l4ApFjlyl8WMTKjtNFviNnQHeQ/QvqasWV65xzGclJ6JM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=cVBQpcrL; arc=none smtp.client-ip=95.215.58.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="cVBQpcrL" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1771805005; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LaxSw3JpmJCqFhjEFoDoUaH373FRBXwbHxCiV8Jk4Lg=; b=cVBQpcrLNu2MMT2iayXHSQCLsH5BCUWrC/AhKkEdYTzsuKd5bNyDPXzj/JKXMQmOjbQkHY S15V0YeW1c7LOoq1DLYhP7z1r22u3JdDNOWzOie1YzOhXvO9TWIAJBWQoMs4Rq+V9eaS68 ll2lj2urGOdCapW0ylJXlELVGEap32U= From: Thorsten Blum To: Dmitry Torokhov Cc: Thorsten Blum , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: adxl34x - Drop redundant error variable in adxl34x_i2c_probe Date: Mon, 23 Feb 2026 01:03:04 +0100 Message-ID: <20260223000308.319335-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Inline i2c_check_functionality(), which really returns a bool and not an error code, and remove the local variable. No functional changes. Signed-off-by: Thorsten Blum --- drivers/input/misc/adxl34x-i2c.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/input/misc/adxl34x-i2c.c b/drivers/input/misc/adxl34x-= i2c.c index c05d898898e8..5ea0ce42a507 100644 --- a/drivers/input/misc/adxl34x-i2c.c +++ b/drivers/input/misc/adxl34x-i2c.c @@ -77,11 +77,8 @@ static const struct adxl34x_bus_ops adxl34x_i2c_bops =3D= { static int adxl34x_i2c_probe(struct i2c_client *client) { struct adxl34x *ac; - int error; =20 - error =3D i2c_check_functionality(client->adapter, - I2C_FUNC_SMBUS_BYTE_DATA); - if (!error) { + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) { dev_err(&client->dev, "SMBUS Byte Data not Supported\n"); return -EIO; } --=20 Thorsten Blum GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4