Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3364683ybl; Sun, 25 Aug 2019 14:21:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJgDd3CgjPf4oPTiLu3LSd+aSDYDrKSqa3MYF29X60FUxPvkvbpop3dZKkCwZA7WEHIpj/ X-Received: by 2002:a62:2aca:: with SMTP id q193mr17029267pfq.209.1566768095699; Sun, 25 Aug 2019 14:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566768095; cv=none; d=google.com; s=arc-20160816; b=06QLSAQRQTU3KuKLAMgdgYNOrNzaFmgsKDYtRhFYi1GvIssb7CGvAnviyKzjH6pT6l 8fRQlXPCgw0e36Jb8P8+yhFHVTKNVsbhVJ7kbVp3L7X9nv31W6XAP2sHhWr6SR4EbCel zh/6PjPmy04flI/gyUP7owGW4mO3l8+3jr3RhT6Hj8zDH+OJPg8BKhNfVSX1a15S60/I vsDcbzloWgZ8i9AnGMCpn4hgnzmXLgmESyFD02sa7C1gJaQ0KYahBvyHVGuNfELHxUt3 2xhRIp1DA7bBYa1qIB+GB8HYh98wW1I9IDLbbKbaC+jd9wm5q3k5y8O+PT/PNIiMp3c3 xR5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=XguKWnDffzr7AqoRgU/VQBvkCeOmZ8YXW620WGCFcfo=; b=ITBqdz+CUEC7VXhzpY+/cFv0ZFp2ZRA2ZbVAEgqAbIPbtXU2wUMhekEdCZfSAYs8Uy gS+bjrqjpfYScKXQwmLrjfMsvZeXLxgPHP09fMzaj23uXfEcokXhf9wDXp61k5/cBqY1 yAyDi+dkhLH7u1FyLxkpbMc+1cv2CxNtkWOTeUu2dYE9EgeV6LQ1CZ+htQyX3jaA1Sz2 bsUmlNUD/e976E+e8ys3Vr9DzuZLbfAdb6tGTuCrdKb+4Yg9E9F1HYz2cTLY9JLZKxbq Nln02K5H+ovYGdENAj74nfjiEMQxBQUtNDdGH92r1RMsPn7/elZot5RH5U1LQQGGoUQe Ej+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YW3QSgHD; 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 a19si7346017pgv.180.2019.08.25.14.21.06; Sun, 25 Aug 2019 14:21: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=@gmail.com header.s=20161025 header.b=YW3QSgHD; 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 S1729141AbfHYUTy (ORCPT + 99 others); Sun, 25 Aug 2019 16:19:54 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46065 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728467AbfHYUTy (ORCPT ); Sun, 25 Aug 2019 16:19:54 -0400 Received: by mail-pf1-f195.google.com with SMTP id w26so10216287pfq.12; Sun, 25 Aug 2019 13:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XguKWnDffzr7AqoRgU/VQBvkCeOmZ8YXW620WGCFcfo=; b=YW3QSgHDV9Q2oB/DaRTgLqHVpp+tb6/qlnDXjS2FGkD6nSJnfy85oNTBk4etP2NHi3 +/0gDN3m4D/SWDQUC6gS5oGiRubMmb0zJkpJyAhtr4qVjisX8t41DTDewaBa7/v2LlgZ lAK2N19JKUUSpcbFyToNtakgdN/fkGdQiPrXKLMT97a4dAxoiD59i4KI+Vn88Sn9cLo2 3xMYRj9uVtPW7x6/ba6NBtijD8tCARpJ0KjIu2ZYSPRKaRLsEyiNXFqrHup3sWaucqZ3 xl43vSKzuCcRtKHY+JGb9Ui6/faN0TWeoGBJR5LUcQaDF4LSha1nTCeXcrhWvPUI0/Yt AdCQ== 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; bh=XguKWnDffzr7AqoRgU/VQBvkCeOmZ8YXW620WGCFcfo=; b=OkC8AF+ek4PrScEIgyIEcYZAFDh0ol1G8WVHqqfYq3zqNySRR+Qh4y8BBpc1VwoOe0 MezFknV2edJI3I3etKlxuOWevkxhsJGrN2lxl9n8hj55GM/WKc9JhMPUVPI6FBzZawhw t+9mTEQTi7VQOjcP/tlLDg+OYjNHKGByyvYtnUxnbcqbNtBypHQbqDllpY0xKK0yVvGd VyU5KGDUIMGV/nSnLjTmnOy5gebUdh8w/H5zlUaezsTjXafuDAuaPQLjHkrApTxBgF2r cJaOaKMzJnq18DXGdQsz0K2aREuYdmIQsnh+pgBbkU3Sj83GvR1Zy0FFzz56zR8KJ+G6 jmTA== X-Gm-Message-State: APjAAAU/11+hQOAvVcvJJeOFXDpxR0WJYT6sNhf1tj/eMWMXS5jmkILf hV0v+0sVVeaRqLbLsMNrfKc= X-Received: by 2002:a65:6846:: with SMTP id q6mr13510455pgt.150.1566764393672; Sun, 25 Aug 2019 13:19:53 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC.domain.name ([106.51.17.2]) by smtp.gmail.com with ESMTPSA id 4sm10855710pfe.76.2019.08.25.13.19.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Aug 2019 13:19:52 -0700 (PDT) From: Souptick Joarder To: mchehab@kernel.org, hverkuil@xs4all.nl, gregkh@linuxfoundation.org, rfontana@redhat.com, sakari.ailus@linux.intel.com, tglx@linutronix.de Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Souptick Joarder Subject: [PATCH] [media]: usbvision: Remove dead code Date: Mon, 26 Aug 2019 01:55:41 +0530 Message-Id: <1566764741-20098-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These codes are commented since v4.2-rc1. If there is no plan to enable the #else part in future, these can be removed forever. Signed-off-by: Souptick Joarder --- drivers/media/usb/usbvision/usbvision-video.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index 93750af..896837f 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -967,7 +967,6 @@ static ssize_t usbvision_read(struct file *file, char __user *buf, __func__, (unsigned long)count, frame->bytes_read); -#if 1 /* * FIXME: * For now, forget the frame if it has not been read in one shot. @@ -976,15 +975,6 @@ static ssize_t usbvision_read(struct file *file, char __user *buf, /* Mark it as available to be used again. */ frame->grabstate = frame_state_unused; -#else - if (frame->bytes_read >= frame->scanlength) { - /* All data has been read */ - frame->bytes_read = 0; - - /* Mark it as available to be used again. */ - frame->grabstate = frame_state_unused; - } -#endif return count; } -- 1.9.1