Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4179148imm; Mon, 14 May 2018 03:55:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZofb6umVaMi8qkusUjJCJojmPK6RnjB3e4m+F0lUZ34GXhi6+3CytdYr5HgClAj5m45/saj X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr9134720plb.299.1526295335196; Mon, 14 May 2018 03:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295335; cv=none; d=google.com; s=arc-20160816; b=1DSYX8OJKFX/rUnWXPJXsbVU1RkmRGCAAa8WbddLFm1k2HHFbxQqS3lBiT2v4z7tKh ZBfX7M9oSvkwUHF4fIU1hmWd1GtbIx0lxORpB4b8fmnuK9QMoUyKb17Epcl9ePAVhJoi CZ4/11D9rlmRDCykpGdDc8fQVBCm0znPx7hdrPr8iL/sWJBHTaWlSnmJyW3iDqnylhBd 7zrg69jraRSS2r5MNylJf4804iyrJQfjfX8UMAoluKiZCzp/TY4+3z2CpWhWxGbKJdUp dtb3f5vrEEMXwyE3PCH/yrCWJfKqk/XdClvniRp4qMWzwkRqGCJ2UBO7tkeO2sV51yP6 vtbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QUqredEsnnvm0NIVnryFxbYznGhUCHJaYIVDwKjCs34=; b=s1kUUwc0a94Uu1pWLzZwO/EqYMr8rqE6bjk39GrB15PVgfRw/PuI8i9qvUYDVdSTaw Jq6JDWvpV6E/7SRAyAT11bQ8Tqv6TTfs5CskAcftg4aBhyJIJNVNAmoBJLXuh44NLEvd u0PCUeskfSnPCeMKAZlrNUfF8oLU3UaV3ikrBOjn8KILbczWYCVOHWqQ7UtqldsUjZmm vdFNU7lr28aG9ortsRwd7qeKLwr4VtJ0m2RrkNo19skfT1dsa7dcSbALCoPbnkItTsnt 2YrEA32ZCV3UGM4C53jiGT7XIkqyZox3THQsh4tZGN1Bg5R++E8zu5zkzI14OVgaYt1G B/kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RzsZWICs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7-v6si9236297pls.286.2018.05.14.03.55.20; Mon, 14 May 2018 03:55:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RzsZWICs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431AbeENKy6 (ORCPT + 99 others); Mon, 14 May 2018 06:54:58 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45070 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134AbeENKys (ORCPT ); Mon, 14 May 2018 06:54:48 -0400 Received: by mail-lf0-f68.google.com with SMTP id q2-v6so17224601lfc.12 for ; Mon, 14 May 2018 03:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QUqredEsnnvm0NIVnryFxbYznGhUCHJaYIVDwKjCs34=; b=RzsZWICsLNqLDiBms+1G2+Jxx8v1YzfD4brNnIKXMVIhH9Pxs7AaAUP1hsEiZsmoaS CT+4w9zHs74mtxy1Ck2VL2Cx7Lp6zs4nf0Rvwg/2j9uke5jfbdZnJRVDD8P9Pgcw/k7L CnNhj3EgKmZHSAsVSU0M6o3I/dhmQ+jRrXg0k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QUqredEsnnvm0NIVnryFxbYznGhUCHJaYIVDwKjCs34=; b=TpcdqmsdvlLkJvIdQHC76oVE0LDDAcCdaixy14uN14ea0AsGE3DhbX65byCFMcem9P 7FdF1ot4TlhsJRn2OV9qYbnUaLWuywBf1sBVJT6Er5vYkSuTThUFaAtNh7jPCj6XyAPr iKbh94297Whp2PyXutSP10P7kX27IDhKSHDin82kmxNOeul3n7vlwOjdQ4LGpuCmvAwa ct0a/o4w//AOJDjO6yCpIVbIsL+j60zLjsVacjBoTI3rhiO50EfgrmKarJVjsf67Lr0U JjWbXL+CowP17z99fYRU6CLs7UEtIyv7ouOcvxyyZIk/3IMnUxZz5wj4w+4XaBsR1spu 6dUA== X-Gm-Message-State: ALKqPwdt75XUoEagrCtSPTBx/LcQ61HyMfYJlIPGGxDsY8oYu2fn2DbS dp+RFwLf83eHTKHYtbuYCPri95t32js= X-Received: by 2002:a2e:96d2:: with SMTP id d18-v6mr4321727ljj.21.1526295287122; Mon, 14 May 2018 03:54:47 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id v8-v6sm2359565lfg.87.2018.05.14.03.54.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 03:54:46 -0700 (PDT) From: Anders Roxell To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] staging: video: fix warning unused variable Date: Mon, 14 May 2018 12:54:42 +0200 Message-Id: <20180514105442.10179-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building video warnings pops up unused variable 'mdev', drivers/staging/most/video/video.c: In function ‘vidioc_enum_fmt_vid_cap’: drivers/staging/most/video/video.c:265:25: warning: unused variable ‘mdev’ [-Wunused-variable] struct most_video_dev *mdev = fh->mdev; ^~~~ drivers/staging/most/video/video.c: In function ‘vidioc_g_fmt_vid_cap’: drivers/staging/most/video/video.c:282:25: warning: unused variable ‘mdev’ [-Wunused-variable] struct most_video_dev *mdev = fh->mdev; ^~~~ drivers/staging/most/video/video.c: In function ‘vidioc_g_std’: drivers/staging/most/video/video.c:309:25: warning: unused variable ‘mdev’ [-Wunused-variable] struct most_video_dev *mdev = fh->mdev; ^~~~ Remove the 'mdev' declaration. Fixes: 7d7cdb4fa552 ("staging: most: video: remove debugging code") Signed-off-by: Anders Roxell --- drivers/staging/most/video/video.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index fc374711fcc0..cf342eb58e10 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -261,9 +261,6 @@ static int vidioc_querycap(struct file *file, void *priv, static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *f) { - struct comp_fh *fh = priv; - struct most_video_dev *mdev = fh->mdev; - if (f->index) return -EINVAL; @@ -278,9 +275,6 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) { - struct comp_fh *fh = priv; - struct most_video_dev *mdev = fh->mdev; - comp_set_format_struct(f); return 0; } @@ -305,9 +299,6 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) { - struct comp_fh *fh = priv; - struct most_video_dev *mdev = fh->mdev; - *norm = V4L2_STD_UNKNOWN; return 0; } -- 2.17.0