Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3414692pxv; Mon, 26 Jul 2021 03:48:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWCeG40r+rkLrFsFoubvWYBacchRNPk6AyP5ZFtWDf7eSdUVR4IAGFS9EjlAgR9SD9SyiU X-Received: by 2002:a17:906:718c:: with SMTP id h12mr16108385ejk.6.1627296497631; Mon, 26 Jul 2021 03:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627296497; cv=none; d=google.com; s=arc-20160816; b=hWocCFjZjslJZkkozP0ULMAgwpKPWXpfUQxWhibMXBATDgS6uUnKQA/USWP7RmjLOk LkQ6yLvyxdZqw/X/6CIP7iyKITYSZ637pXG3+tEqmdmRNcww5UEKwMTcx2nRpu4RO46L XapcwFClryQnVPgMzgWS0I0NE51LKdHaX4FyJAa6nsZwFMlCLZvOXAv0qe65U7GEf0G6 WeIyDaOR1CUCUSHFXVQov1qWGSvBR71YJnbWfY4jUNYfmPScc763hH2bxyIRAxyRWKYN IlvuAbmMYy4SVXAM5Ma2gMR40AJfamom0IRugtTQ6DlB3sGaEE8eN0itFWMTRp9B5Zos 81Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:sender:subject:cc:to:from:dkim-signature :dkim-filter; bh=ZkJrXiDbEUSVRRGepR3fY2i121HkkHGkjcgykLuX9uQ=; b=THJzeapWwmRT1cpASjtBM4a/R8F9X6/NIxuY9C9Paqo8O1qGH5AsOtyQUTGewZfVTN oAPcYaSvGim/C3REJzH52NGpGZnefg+dT1KwNgGsd2zG/gqpDcOAxTKX7E7UlB0pIhxY EORjPyRx9GZIepGvPxRMBv3aSb61LrG5Y/EEDQMKv+sSDBrAELQ7mktpfQxBsEoE0rv+ mOKOnbP8ofx6ApNabYejOUfNCj0Lk9xKYDI7kS6qXerX/j/brI+I3fnW0aLI2TqIX54Y VD/4n+mMIjUAGv85CSExYs9GCTZs2JxhCjCcNIj1b9ay6GquvAoo+UfIm3zvu1MaDsSO fn+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b="OK/NdLdt"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga29si5397098ejc.74.2021.07.26.03.47.53; Mon, 26 Jul 2021 03:48:17 -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=pass header.i=@piap.pl header.s=mail header.b="OK/NdLdt"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232250AbhGZKGC (ORCPT + 99 others); Mon, 26 Jul 2021 06:06:02 -0400 Received: from ni.piap.pl ([195.187.100.5]:41428 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231421AbhGZKGB (ORCPT ); Mon, 26 Jul 2021 06:06:01 -0400 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id B5FB0C3EEAF4; Mon, 26 Jul 2021 12:46:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl B5FB0C3EEAF4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1627296388; bh=ZkJrXiDbEUSVRRGepR3fY2i121HkkHGkjcgykLuX9uQ=; h=From:To:Cc:Subject:Date:From; b=OK/NdLdtyhoyrRzWruroNcHNz+ofVswrgHvgqfXw9PeyR5sYMU2hc2w1cMqh+pZYk BMIeJZUlznNFeTgx6LmPMAMKqJZ65lhZbAjIJPrWn2qpPS5CLJgnuYeWTUGooH5sQa Ga6MkcmOg2NyD/YQdgIfpVThvtZZRSCHz8zrd/cg= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Tim Harvey Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] TDA1997x: fix tda1997x_query_dv_timings() return value Sender: khalasa@piap.pl Date: Mon, 26 Jul 2021 12:46:28 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 165240 [Jul 26 2021] X-KLMS-AntiSpam-Version: 5.9.20.0 X-KLMS-AntiSpam-Envelope-From: khalasa@piap.pl X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=pass header.d=piap.pl X-KLMS-AntiSpam-Info: LuaCore: 449 449 5db59deca4a4f5e6ea34a93b13bc730e229092f4, {Tracking_Text_ENG_RU_Has_Extended_Latin_Letters, eng}, {Tracking_marketers, three}, {Tracking_from_domain_doesnt_match_to}, d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;t19.piap.pl:7.1.1;127.0.0.199:7.1.2;piap.pl:7.1.1 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2021/07/26 09:41:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/07/26 07:37:00 #16957752 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Krzysztof Ha=C5=82asa diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c index 043cc8275d00..cbfe58e413e9 100644 --- a/drivers/media/i2c/tda1997x.c +++ b/drivers/media/i2c/tda1997x.c @@ -1695,14 +1695,15 @@ static int tda1997x_query_dv_timings(struct v4l2_su= bdev *sd, struct v4l2_dv_timings *timings) { struct tda1997x_state *state =3D to_state(sd); + int ret; =20 v4l_dbg(1, debug, state->client, "%s\n", __func__); memset(timings, 0, sizeof(struct v4l2_dv_timings)); mutex_lock(&state->lock); - tda1997x_detect_std(state, timings); + ret =3D tda1997x_detect_std(state, timings); mutex_unlock(&state->lock); =20 - return 0; + return ret; } =20 static const struct v4l2_subdev_video_ops tda1997x_video_ops =3D {