Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4186535imm; Mon, 14 May 2018 04:03:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpcwiNDTSucFOVCcHnw+sONaWfgCUyq9b0m7VULBVlg+enSps1suDhIQN8N0lystSA0UVR8 X-Received: by 2002:a17:902:274a:: with SMTP id j10-v6mr9629790plg.393.1526295795850; Mon, 14 May 2018 04:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295795; cv=none; d=google.com; s=arc-20160816; b=galXvgAlnznY1c9ycqbrb8veag1gInOHqqsO7GDteC5qjquI71/sl1UfVjeRc0IR6b siN5AOHNcOZDKS3vhuyHxfrEEEFCIJA5PjlOnXVO4BeVabX1dEoiQ9ixYSCmvND59Ocl FrWeyRajLM5GxIauQTEEl4Yukk9ya7PIXvCOnEI8KlFfR2ClspC3gT1r+VCAJBKYbPHm TYyoS7WJlHHzXgm02RcC3adcK/222CqwMvaGAZZlYdeVIObGmbHURJIoF+rPCzEK1mPj WNzRhdirU93n81Yqud4ZyIqR0hGrGq+tspZOD1/3ow0Myfxr0uGvOxE5+5Frs5C4k+e5 W3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=l4IjILCSwrOnw9So/HtcayTVMD/NBZTqwtsCSjduoHQ=; b=N9RYwPiRtllypIdLhgToAW95PWKOa9so2iYK2NEgb/eAHrL9C+Bi1rdlO6gdPVwxQ9 rii/69IsHSmDQqQsnwjuGcmtf/UzjvpOx9WvUtIhjcMEjLOotJaar11aDyA3EXZ17KRT KRGyaDlui4E4oeHsDPfGQmz5Yy2nUd/4/OhuVYTT0T5hcRWH7uAq9NkIc93/e2ZvtqYz ggHwwE6pWGQQVJuzUD0/mVky4vyK1xPx1RZGb5XYD1DhyPb4XnYBNDFjh/JBizcOD0nP 2c67X6mYASR7OhkZbplT7Mrq7YprHXQbULIH4bNKi1/UBRUQx8FO4LsDrBrGxTwRGs1z xHsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qBwWRp4K; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25-v6si9198096plj.344.2018.05.14.04.03.01; Mon, 14 May 2018 04:03:15 -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=@kernel.org header.s=default header.b=qBwWRp4K; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752650AbeENLCM (ORCPT + 99 others); Mon, 14 May 2018 07:02:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbeENLCJ (ORCPT ); Mon, 14 May 2018 07:02:09 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D1822172B; Mon, 14 May 2018 11:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526295729; bh=tJ+y3BItTlyJB6ddlmIn3NLZxYlbH2CJCrE3lpFXTTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qBwWRp4KZlibmJQmWsJNVFcrAAiVqX4CnHrUJThSgzGV3rg/ZZXTBKLDA9GkzRnGZ 163cVmYJ6VBNFcGrXM5JuSjijJy6Z7U6jfe0AcAmkEAmvx0bg3vvpfhE7z6BSFI/6a y0cO6ZemQv3sG7eLi3p3lrKy0MMYH5S5vQSJWXwY= Date: Mon, 14 May 2018 13:01:52 +0200 From: Greg KH To: Anders Roxell Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: video: fix warning unused variable Message-ID: <20180514110152.GA25303@kroah.com> References: <20180514105442.10179-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180514105442.10179-1-anders.roxell@linaro.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 12:54:42PM +0200, Anders Roxell wrote: > 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(-) I posted the same exact fix about an hour ago, sorry. greg k-h