Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1649757lqp; Mon, 15 Apr 2024 12:36:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURImsgSPTDx1XOLge5WCSocf9bDLzgNoBEpZqm8u6jmE6ehbj1mJ+UhrZ/aogjteX+KRKBLQnaap7YbZqorDJlfLdiwqHizABXB4LvRQ== X-Google-Smtp-Source: AGHT+IH4xKLX+5QX8PvTCeYT04vSJRytQ1S5mYI/q3Q1y7vEhbzZQupLarKzCH6ZKr9nB5lrYSs7 X-Received: by 2002:a05:6e02:2142:b0:36a:1121:7358 with SMTP id d2-20020a056e02214200b0036a11217358mr13691360ilv.8.1713209800734; Mon, 15 Apr 2024 12:36:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713209800; cv=pass; d=google.com; s=arc-20160816; b=azMYJRtz9amB5QXLsCh6w0xh3qqZ3oMtuxBzvdHsSSO85v6xsfW+5eP+pziDd28hiG bEDk8nVlbHDTWZ04tCTI1peRECGvp4z+o0EE71fNsiKw562riYnz9Bj7bNZ34NaJejTN hi5Wq1rls9pvps3kx+Qo9BLhXp28tqVitjVhRB5vuHJqiDSlKIdjarAmEk1yKOIXAZba I5extry34Mfb+wFhF3L0c8R+aHwLtTo2a5QdmpUgi7lkl2X+AqL6j4vvIDTk2zZNmlpe ssJtF+e9YjytvOTWueNYniXWx5KwA2nuXpIiQp3z9BKqnDq/LiihP7uRYGhsf3X46CBg d+6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=xRTXUwBhcFkchUD68etf7Ns4ncGhFtPLbimlhLL9HW4=; fh=fQD2doV2fMOP08DTpnnJlFhplwnLwPtWG16KCrgZr/g=; b=deBe7HrFuFFj3MThiNmC4KkSjIP5dx31Atg6fcF/YfHy+ksS0AwC2EeKomBB0x+rV9 3OJReVPHfnYSf3tMDD4V26lgnMiHjCrv0bEQvTxLLcclo0ohWSlZ2IOPHJecai82rCOW 7C0bm3oRqpvTcJZBQLvq+25VNGNCszrQHaBb+9lU/4xLzH+Xk6QxHhgV+Blt+KRbbXWq g/Pd4gD4nbpW2/x/U8xBgYLUm18OAUshsHA7/X1u/c86q9UXUBzRvdfRYgt0rv/SJ1x6 +tVrp4ZQdZ6WFcJey1qIcFMit+h2pUOBDdMlajk5UcTPTm0efS+D6C+diRJtuyzPA4zV Ko1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BRrz7r2a; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145784-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g10-20020a63564a000000b005dc905460d6si8120067pgm.315.2024.04.15.12.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145784-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BRrz7r2a; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-145784-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D215284388 for ; Mon, 15 Apr 2024 19:36:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEE09159907; Mon, 15 Apr 2024 19:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="BRrz7r2a" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 59A301586FE for ; Mon, 15 Apr 2024 19:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209672; cv=none; b=IWHqirfRIp3r0hF3D78JqFAqjB1Mt4QC8V9+vzc26EvGe2IOxomflTBH0+izogXIAUShXAY5ddFrdYfMqw5CC+nZtS+ghF7gpgB7vBYLYZ9QrelGHsOLw/VKS0fO/J8Bj0ZCpfRGieXRo3grhhjJx2Bq34jcVuNUDq5EcxsMxtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713209672; c=relaxed/simple; bh=32n42m9fdIyR+hNVCJy47MhHZfKMG1kvIiYpYvj18tM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h6o/4JDit1inGEew6cHB44O8KR8XLk7pF5TnAFG5feigy7iT+IaoU6yxjHdIBl0PcjzwC490rzpdXSC0ZedlaEkZ4LuEgpWD4DkvI1uaznECwv78nhlnaYAU48GhGB3iz3cMkAjg4k8IoH7BbcP99FcWSenqnPE60SQ0mX60rN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=BRrz7r2a; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-78d5e7998a0so283663485a.1 for ; Mon, 15 Apr 2024 12:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713209669; x=1713814469; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xRTXUwBhcFkchUD68etf7Ns4ncGhFtPLbimlhLL9HW4=; b=BRrz7r2aDK2PPekfkNvI8RRNowCL/eQjOyqwfG5qTX2qjmtuHB4WT2N7YxaV/xRrD9 tYBGKKHTYdNYLEDISZigulVt/re7uYAfY20oeJC3hIShcTRrFW75p+Nvm7gZOwBpHmof +QkCyQRYkF9Ib7fIdEfpLgX5/Ihkk8zhQ/Unw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713209669; x=1713814469; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xRTXUwBhcFkchUD68etf7Ns4ncGhFtPLbimlhLL9HW4=; b=ikj9Xn5G/tnz3sUgqD90XgazWhTxvCqg/sIT4oyXRf+wIbTyoLGsSG5CT51NTiziGs CT0Fm/spweiaMpCh1fBE+bzaPyV4meHwWYaeqBUkprXzxKWUQCqCAvK93miN8A0nF4lI GZ9nJH7atuRWZjwcwjHGkJqVur/KeAFLA7MvgSH0R1qvbqoqpaorNmb3GzB7Y4TTgHRO XY7qBsCVxs+9kteddKNZlHax+MiIAa4vyf6mG9FsUnWtz1GBdJ/ZdImo2reIBLSiTcAU tmW3xJjzNg/TOcoyfviSbvmunrDXbc4KO3sD+SLfoqHf6SzLIZ4j0lFShZW0wlnAjiax FK1w== X-Forwarded-Encrypted: i=1; AJvYcCXIZvRWVza4+7yAh2ZGuJvY9fu4bFuzby4ZuLv93J6m5vG1Dbks8lv4nx3zDCWdcz7y7BEyu3C8dheRwnT2CRTrzbqE3lKg/2Rm4gnE X-Gm-Message-State: AOJu0YzKEHFPvVRj9zZI6pas9O/f4wSGK9jZeKYKQaN04dCMYxJiR31x 9msyue9EriF2DlGBPE5IFHZSqYrmU69DhmsL1a/M6id2yqem4cWAjnsevinvHw== X-Received: by 2002:a05:620a:370b:b0:78d:77f2:573b with SMTP id de11-20020a05620a370b00b0078d77f2573bmr14232523qkb.52.1713209669333; Mon, 15 Apr 2024 12:34:29 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id s26-20020ae9f71a000000b0078d3b54eb76sm6718055qkg.78.2024.04.15.12.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 12:34:28 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 15 Apr 2024 19:34:19 +0000 Subject: [PATCH 02/35] media: stb0899: Remove unreacheable code Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-fix-cocci-v1-2-477afb23728b@chromium.org> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> In-Reply-To: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> To: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Pavel Machek Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 chip_id is an unsigned number, it can never be < 0 Fixes cocci check: drivers/media/dvb-frontends/stb0899_drv.c:1280:8-15: WARNING: Unsigned expression compared with zero: chip_id > 0 Signed-off-by: Ricardo Ribalda --- drivers/media/dvb-frontends/stb0899_drv.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/dvb-frontends/stb0899_drv.c b/drivers/media/dvb-frontends/stb0899_drv.c index 2f4d8fb400cd..222b5476ebfd 100644 --- a/drivers/media/dvb-frontends/stb0899_drv.c +++ b/drivers/media/dvb-frontends/stb0899_drv.c @@ -1277,11 +1277,6 @@ static int stb0899_get_dev_id(struct stb0899_state *state) dprintk(state->verbose, FE_ERROR, 1, "Demodulator Core ID=[%s], Version=[%d]", (char *) &demod_str, demod_ver); CONVERT32(STB0899_READ_S2REG(STB0899_S2FEC, FEC_CORE_ID_REG), (char *)&fec_str); fec_ver = STB0899_READ_S2REG(STB0899_S2FEC, FEC_VER_ID_REG); - if (! (chip_id > 0)) { - dprintk(state->verbose, FE_ERROR, 1, "couldn't find a STB 0899"); - - return -ENODEV; - } dprintk(state->verbose, FE_ERROR, 1, "FEC Core ID=[%s], Version=[%d]", (char*) &fec_str, fec_ver); return 0; -- 2.44.0.683.g7961c838ac-goog