From patchwork Mon May 14 10:54:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135723 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1598994lji; Mon, 14 May 2018 03:55:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr/ZpDvKPlokrjNp5+TPiBXnQj28wEciAaMjweKCy+z9jsANto7CxIdPs4tyODSYaue7Td+ X-Received: by 2002:a62:18d6:: with SMTP id 205-v6mr9966438pfy.242.1526295300253; Mon, 14 May 2018 03:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295300; cv=none; d=google.com; s=arc-20160816; b=Yd+5IQ26+PdJ0LTxnewY5j8C7C5LiiCbz+uY7goPs/huEwZvm15n9Z03DY0sveKJfb 1iYMLoJxfXAwAe6b1X5RkHH6CbFc1pckaX45vRHmXYInsDWz10oO9XddbEB/1h6KHnB/ zKgD9WkhU4Dgx4NpH2cFDpEXK750uFoml36jrsqKGwRqneQFCRUJhoOx2YHTbZhlBtO+ mMUmsaikx5SL9i732qpGqroZSz9yPdCsyfR+IoitL3NZc26WdV/Eiod6+LHBDP72+Pcj M5RgBO28ElXnrvM2rqrcQB1ue1vWFlSV2u06iKiwVzblrtHxFwp8zvgJAFHTRaqJoPDX Y/5Q== 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 h5-v6si3946460pgp.666.2018.05.14.03.54.59; Mon, 14 May 2018 03:55:00 -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 S1752438AbeENKy6 (ORCPT + 29 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 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(-) -- 2.17.0 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; }