Message ID | 20250107-fix-cocci-v5-5-b26da641f730@chromium.org (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 920561EE00D for <linux-media@vger.kernel.org>; Tue, 7 Jan 2025 10:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736247282; cv=none; b=Ruj6KfRcdsHeTn2e8Berne1Aky6cOY8iexjgIa1wZclrqWHJqU7lcW9MvwN2Zf+jScQCpft6sc9kpb3bOqI0E7jpHVnupTNYj/RMIZGmZqqnvkaOVtLDsDIgE4MNht/2NEWLA/4NRHKxbpP6bOmkuVmvt+vY7/Wc433t3xqfHuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736247282; c=relaxed/simple; bh=jFMkE+aUW4A2Tjf06APpBG1sAvp2ejflRJ8B5s0jBLU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sUOnzDJZeWODL6IRyqBNAQJ+CvzNzNFW6nKJrscdSiKID3U3B2Y7ZSHeKk82Vyifv5u4VuciIDMhPYPE3XxksH/o+mO8JxcBvYu7Ku9OvaHgSqxNNdt7XCNrJC/hwulYsz7IAS3xTAb1Lhf2IO0noS8ekxUmrB44i0/53XvMdl4= 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=NT2xyJq1; arc=none smtp.client-ip=209.85.222.181 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NT2xyJq1" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-7b98a2e3b3eso757337685a.2 for <linux-media@vger.kernel.org>; Tue, 07 Jan 2025 02:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1736247277; x=1736852077; 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=f3BoX2c5ZbHlzZ/xObQ8c1PFxHvs7MLN/22FFGinwVE=; b=NT2xyJq1NDPYIKRf+414boTnR47X/0q5JYL/BQjJGxhq8TTORpSUxs4SLC15fp9FJ2 yLWdENcKBDgb3V2qUZ2EKxOXApbAohhNRzb42UFuCLLTr/m26lspjIdC2HflZ0kNiGqu LmkG60b3Bsh7wEEaUPeFSiVlpUfuEW2iK+8r8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736247277; x=1736852077; 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=f3BoX2c5ZbHlzZ/xObQ8c1PFxHvs7MLN/22FFGinwVE=; b=jczlgFJLN6z1TbbkHUb4+XFPFWZvdmtVWO9bF4mrKvldoDufWOtmYRBHhpoKUEi+N7 j3O3fbM/YVysnVER1gbeuEb9p8VhGMgJN9TYtpGqDsNQ2ZfjULToWj7nxeaUw6X/Wd5K G4Ai1KAmXxymaJXPfEtNoJgEoA0nWRsD2/7Vz0vtnhP4Zze3HyTGq94gQ+eneMOGpUsr /H8eI5Q3l87T/0nKlDi/lDJkic/+glSatsrmhVlBfDVVVM10CnsdAGxRO+bED77KiI1T U04/Qc/QDeDjvwfd19pDJli1nj0N7npF73J0dMvIvjasf+Su+dn9bf7kixxN2FALvkFs yUvg== X-Gm-Message-State: AOJu0YwdpVLKUc0S30T93ER6O+5MIWK7Su+5ga31Xs+iUYrgHrvJ61tD KzxzEeyIe4QgdXbIEeX3eZo3uHRqAIwxBZZL/HUnpP1GPuQcIzC5fLoEiHANCg== X-Gm-Gg: ASbGnctD62G32+1Y4GM1rkc2lVatdnH0EH+Cj88VD4bJ5e7BKpusBmk8tV72Mt/TsKG 6vQFlzpzlKUYCkXEiG3PHhs2bD/+iWUZk2bHdHnrsAr94DkWqslOGziZhyuxSkD8Y6VnoD+3vNU XiIySPv+WlYagDAliObt3Djst29bB3sJoLIFqRWXf1EM2FfoMJt9qv3Q4itU45d8CVxsoE2+7ed JEoP1gJZ/gvcNF+IxeZ1RXLEQGclvCnIJzhab4vKbrA6rlMlhNSN5vJxzxHiRGRDvXB8Yp1hokt eKylvI5bnz8MUoRAn209LUvJkseeiOVER5Zd X-Google-Smtp-Source: AGHT+IGAVyKTISN9zpaJnwozwU+COiRxpnABqxxsvJgsi3kg81agGnrCLMtsX46fVIPT7llJuWHApA== X-Received: by 2002:a05:620a:2a12:b0:7b6:cb07:24bc with SMTP id af79cd13be357-7b9ba7f6642mr9826632085a.48.1736247277498; Tue, 07 Jan 2025 02:54:37 -0800 (PST) Received: from denia.c.googlers.com (172.174.245.35.bc.googleusercontent.com. [35.245.174.172]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46a3eb30b97sm185094401cf.86.2025.01.07.02.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 02:54:36 -0800 (PST) From: Ricardo Ribalda <ribalda@chromium.org> Date: Tue, 07 Jan 2025 10:54:30 +0000 Subject: [PATCH v5 5/6] media: venus: venc: Make the range of us_per_frame explicit Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250107-fix-cocci-v5-5-b26da641f730@chromium.org> References: <20250107-fix-cocci-v5-0-b26da641f730@chromium.org> In-Reply-To: <20250107-fix-cocci-v5-0-b26da641f730@chromium.org> To: Mauro Carvalho Chehab <mchehab@kernel.org>, Stanimir Varbanov <stanimir.k.varbanov@gmail.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Hans Verkuil <hverkuil@xs4all.nl> Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricardo Ribalda <ribalda@chromium.org> X-Mailer: b4 0.13.0 |
Series |
media: Fix coccinelle warning/errors
|
expand
|
diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index 17bec44c9825..2c1836712362 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -412,8 +412,7 @@ static int venc_s_parm(struct file *file, void *fh, struct v4l2_streamparm *a) do_div(us_per_frame, timeperframe->denominator); us_per_frame = max(USEC_PER_SEC, us_per_frame); - fps = (u64)USEC_PER_SEC; - do_div(fps, us_per_frame); + fps = USEC_PER_SEC / (u32)us_per_frame; fps = min(VENUS_MAX_FPS, fps); inst->fps = fps;