From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 EAB6230566A for ; Sun, 17 May 2026 17:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038459; cv=none; b=DtTzTe/96P1YDykpPuMHWk4IA7xchg0+VpR/NgJpjCwImLCXmTLGyy+jJaBxooZVX2c5kqmX+WXhpH5u8IEX+2x2DHrB9LO7TMVgMGd9ovSuBthJI4h+bhwRXakw4xk2I66Cn0t4kEI4pDStwgnSuGO3404pXKSyuqMEU7gDryc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779038459; c=relaxed/simple; bh=vsoulUNuQqQHNX9oKC4vtpX947oQ8/AiVwpRZbftkfs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A8eihnTQ2QqtRRT5kCA9XX0J4VUJG/6gIylCFP6RMcFC8rflgWfhx+x5P4tl6sAugFe1pTcSEWUKPc6u23WQG2UTUrjRYCBIbwwSrvCgeo4y/r5v3LyYp3pkHChAZfgP5fge44uuenGXZ7nACwnIO5IAwTQ2xaQncVp04fjWfsk= 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=rdy292ev; arc=none smtp.client-ip=91.218.175.186 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="rdy292ev" 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=1779038445; 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=CgLQ9Y1K8hEZbbpfjEz4NsFKN2z5LFsryS6T3jsNdJM=; b=rdy292evZIjJ7bQD0Tm4QxBSGw9mm7IbmCEHw7PJA0lN1uFeriqVQiUPk2ZflDbLmnIA55 s1sJE17S0UjGYLE4oYdDzwQ2Clis4u9p4i+EoKzu0dfh6N872fggVADXTc65hx5b46MYRQ awimpGS8X9p65YF3Ya7/nVKMQB4heiI= From: Thorsten Blum To: Michael Tretter , Pengutronix Kernel Team , Mauro Carvalho Chehab Cc: Thorsten Blum , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] media: i2c: isl7998x: inline i2c_check_functionality check Date: Sun, 17 May 2026 19:20:35 +0200 Message-ID: <20260517172034.3033-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=825; i=thorsten.blum@linux.dev; h=from:subject; bh=vsoulUNuQqQHNX9oKC4vtpX947oQ8/AiVwpRZbftkfs=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmcPx41PNhyxPrceu+LoYs+5bxg3TiH8e6O2f96Phn6L VrKkn1IpaOUhUGMi0FWTJHlwawfM3xLayo3mUTshJnDygQyhIGLUwAmEviMkeFAow37xJ9NS9fN mPzRziztQLfrmuCEBA0r600fHh+1zLdi+F9YGbA/b3/p6/Dbaa8D5Jnfr3To1vT68Ur7GGdP9B+ TzXwA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Inline the i2c_check_functionality() check, since the function returns a boolean status rather than an error code. Signed-off-by: Thorsten Blum --- drivers/media/i2c/isl7998x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/i2c/isl7998x.c b/drivers/media/i2c/isl7998x.c index 5ffd53e005ee..96702c5eaa35 100644 --- a/drivers/media/i2c/isl7998x.c +++ b/drivers/media/i2c/isl7998x.c @@ -1460,8 +1460,7 @@ static int isl7998x_probe(struct i2c_client *client) int nr_inputs; int ret; - ret = i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA); - if (!ret) { + if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) { dev_warn(&adapter->dev, "I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"); return -EIO;