Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1591704imu; Wed, 16 Jan 2019 23:30:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN7SFMqsGfeSfpAVQFSrRIcaUWy4Pk7lCIbO2vY7uk1h0p1mAdrVXuhV2MLcyT2iHhfgb7qV X-Received: by 2002:a17:902:292b:: with SMTP id g40mr14052671plb.82.1547710251630; Wed, 16 Jan 2019 23:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547710251; cv=none; d=google.com; s=arc-20160816; b=VJDQMsXz1Oz69IAKyFYJjIP4aHSjx86Z3xkf81mrI0cy4kQwf4YWol3DUcD8jnQSbt VdrWBUJJW6oE3/MD6+LEU3KI6+CWWRJw7x9k/zrPUmr6f3mwIlgyqE9Fe0nhQ8sfDK9q uNQfopTYwxtisSSrx/TUy5RCcel155nA7PqhkKiP7GHl9wMKkEUIPA9Z8+AM7PqgtkIf GVoqF5/r6OHIzlwTpoWfJQO3rgPHG1bIrH5pwBjU3PFZq4K0Zx5/e3nUPkrFo5N2hSD7 liFAZVDKpMLq2+40fx2uIpSB9BwL56zvI5JmwyE3qE4iQJUr60FdYTbIoD7G96ZilO6m XnQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=GIqHD+5i6aiV0G0NAFyRGh7lKTGvUOXmhbisqg7OY0s=; b=erOuHGHbjAwZiKyQzdw3bnWha+Ssjpk+EnLYo7XEdfQ5gLFU9cCnmTTfZ5qaRJ3me2 JuJy4d31Q/rVs5VL7Ypoj2q81fOnjmINeJSkDupredW7g/ZxcHapPtgRBaQjaV6m9u6n 9d1GhUFvcACgY67GC1umTOMRXT5ohDSBnmS03NDoqirgYHE70hO6PP0bga8NPTTJve9c XkYEs00yaOruzAkvAEGdLIiCLmy+QD9FxHvKvGrC4PKjn82X+NLHifZ8zbjLvGBcnBcP bno45oav2c/lNjh5xZFRKHRhezDmxUASf2m//KBAweh3CH2oFv+WhNXMTMOD2D/+TSZn 4m6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NjmdDGh2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y73si839297pgd.478.2019.01.16.23.30.36; Wed, 16 Jan 2019 23:30:51 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=NjmdDGh2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729402AbfAPSpb (ORCPT + 99 others); Wed, 16 Jan 2019 13:45:31 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44320 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbfAPSpb (ORCPT ); Wed, 16 Jan 2019 13:45:31 -0500 Received: by mail-pg1-f195.google.com with SMTP id t13so3192702pgr.11; Wed, 16 Jan 2019 10:45:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=GIqHD+5i6aiV0G0NAFyRGh7lKTGvUOXmhbisqg7OY0s=; b=NjmdDGh2z+MzXKdZ3H9zrBrVll7rNDty+vIJojCc0Ryc/MtCnQtQJfSVYScvEr43fB 1ZzmEKTWQ8QHblcYSjvdzJrY7reBauMVyHGx1HBwKAYW6Tnl41JwsmkbjB4G/GDoyjTt NmUnasfImDQcadV0ACE27a4i64wcYDzLokIaqG0IYRL996/9lvdWtt5X3n0L30acqt39 n8OjZdzTtAXWGbaDjYSVZ1CJt0iRgG6b9U1MxO5a+iUp5fqOOKE1NasXrkrNKnvWlbaq uOeyS3qV+ijPFSseKUoAvbAU5812CX+nHf4sQIr/akQfznSmNR9vtISmGMzqk/Dc+SFn cIDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=GIqHD+5i6aiV0G0NAFyRGh7lKTGvUOXmhbisqg7OY0s=; b=TmR6uZqPtfXNWFhjvvcChB12RgM+pXczkriAwLp607CKTkEUpGZ8mp1hleh3OE/5gh 9kslpMvT7fKBsmFgSK+LLVuSFLsiGmWlXFROsV515gdbrsdCp6ZhMdcnYYq7DmddW0/s LNTadBySI1ZHCYnb2xGGpI6h9VWgb5B2cD5xvrfGm4VGkmU6RwQbWOoa7DDGWLGAuBCN 90sg/4zfsFQOr1OnsGSiHx0Z5gW4FOV03qrhHMRsP2BxCpRSLQp9UIwrnLkGWL21ORQq kxsFsr+qo0siUEpTi7V+uGd9hQ2GncsVJtEcL6mZtf1cAU/5KICG/z675bDeLU/T2nWE IZPQ== X-Gm-Message-State: AJcUukf2X3wqFZuSmZUC9pFWollRgCpZY2mvolhSH9ot5cGpq6e4/o7y BGWg+DpvqDJGKcb6iG6iEeAwiwd2 X-Received: by 2002:a63:e20a:: with SMTP id q10mr9913430pgh.206.1547664330200; Wed, 16 Jan 2019 10:45:30 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([49.207.55.114]) by smtp.gmail.com with ESMTPSA id g3sm13351073pfe.37.2019.01.16.10.45.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Jan 2019 10:45:28 -0800 (PST) Date: Thu, 17 Jan 2019 00:19:33 +0530 From: Souptick Joarder To: mchehab@kernel.org, brian.warner@samsung.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, brajeswar.linux@gmail.com, sabyasachi.linux@gmail.com Subject: [PATCH] media/v4l2-core/videobuf-vmalloc.c: Remove dead code Message-ID: <20190116184933.GA4562@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code is commented since version 3.7. If there is no plan to use it in future, we can remove this dead code. Signed-off-by: Souptick Joarder --- drivers/media/v4l2-core/videobuf-vmalloc.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf-vmalloc.c b/drivers/media/v4l2-core/videobuf-vmalloc.c index 45fe781..293213a 100644 --- a/drivers/media/v4l2-core/videobuf-vmalloc.c +++ b/drivers/media/v4l2-core/videobuf-vmalloc.c @@ -196,26 +196,6 @@ static int __videobuf_iolock(struct videobuf_queue *q, } dprintk(1, "vmalloc is at addr %p (%d pages)\n", mem->vaddr, pages); - -#if 0 - int rc; - /* Kernel userptr is used also by read() method. In this case, - there's no need to remap, since data will be copied to user - */ - if (!vb->baddr) - return 0; - - /* FIXME: to properly support USERPTR, remap should occur. - The code below won't work, since mem->vma = NULL - */ - /* Try to remap memory */ - rc = remap_vmalloc_range(mem->vma, (void *)vb->baddr, 0); - if (rc < 0) { - printk(KERN_ERR "mmap: remap failed with error %d", rc); - return -ENOMEM; - } -#endif - break; case V4L2_MEMORY_OVERLAY: default: -- 1.9.1