From patchwork Thu Sep 14 17:45:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 722859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7813EEAA5E for ; Thu, 14 Sep 2023 17:44:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239146AbjINRpB (ORCPT ); Thu, 14 Sep 2023 13:45:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238757AbjINRpA (ORCPT ); Thu, 14 Sep 2023 13:45:00 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B00D1FD6 for ; Thu, 14 Sep 2023 10:44:56 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EB33E10FE; Thu, 14 Sep 2023 19:43:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1694713402; bh=/rhZRbtjEdtKbEI0wPlXi3vhdeWlZW8aBF1eN/xIOMk=; h=From:To:Cc:Subject:Date:From; b=PuJizQ5ioxpN57hURqclro0mlJtLvax/eQBdgEvSor6i+LUIbUDn4LCIp+ZLXZYyP wND6yzMdX8LLle6SyjdQgN02gXA11RLvFlDjKCvgxlWMZwXk0nOEYpNNCSWsa8rzAF 4k1aG4KzdmASEO+rGeiRI5NkSeWoD9Q5Qca3G98s= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Sakari Ailus , Daniel Scally Subject: [PATCH] media: i2c: ov5693: Drop the unused streaming flag Date: Thu, 14 Sep 2023 20:45:08 +0300 Message-ID: <20230914174508.785-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The streaming flag in the driver's private structure is set but never used. Drop it. Signed-off-by: Laurent Pinchart Reviewed-by: Tommaso Merciai --- drivers/media/i2c/ov5693.c | 3 --- 1 file changed, 3 deletions(-) base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d prerequisite-patch-id: e46ede71d8cba61ae5bf7721eb35338b9e2d36d0 prerequisite-patch-id: 4cfba8929058f17ab103d38ea1b447126e645935 diff --git a/drivers/media/i2c/ov5693.c b/drivers/media/i2c/ov5693.c index 488ee6d9d301..d6836725ced7 100644 --- a/drivers/media/i2c/ov5693.c +++ b/drivers/media/i2c/ov5693.c @@ -154,7 +154,6 @@ struct ov5693_device { unsigned int inc_y_odd; unsigned int vts; } mode; - bool streaming; struct v4l2_subdev sd; struct media_pad pad; @@ -996,8 +995,6 @@ static int ov5693_s_stream(struct v4l2_subdev *sd, int enable) if (ret) goto err_power_down; - ov5693->streaming = !!enable; - if (!enable) pm_runtime_put(ov5693->dev);