From patchwork Thu Oct 1 12:03:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikhail Ulyanov X-Patchwork-Id: 7308301 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D05979F302 for ; Thu, 1 Oct 2015 12:05:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0482F2063F for ; Thu, 1 Oct 2015 12:05:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 197EB205D8 for ; Thu, 1 Oct 2015 12:05:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933331AbbJAMFT (ORCPT ); Thu, 1 Oct 2015 08:05:19 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35045 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933265AbbJAMFL (ORCPT ); Thu, 1 Oct 2015 08:05:11 -0400 Received: by wicge5 with SMTP id ge5so26484351wic.0 for ; Thu, 01 Oct 2015 05:05:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lpCz99rJOXsXfwcrKtL0xKeczuQZ9TB7BXL/eY9qVao=; b=LRr+ReRHWBW5craTEJxVsIb7wzk+XqgU3pp0Y1uz4oELct9YOwI5sy2FgRS4QjGuTW /E3EyUa9ttW45GnJXo/wed4dVHFuSkaUONTDIH7DD9TYH0h0HG/sFj9Y5H7rnDoC3JvK 3PjIFMKKc+HtLOzVRwe9vgvXrdXLfGtyK8Io5syOGelcmUv0G61lz2oKnFfC01Aj9PV7 fr0ISJnolVTJYVQbTTDqJKg+UWYYd2A1C2qydDt8XN3avi9j7CqeDTqEXepsabWHkMEc bJ+meNbe0OHpE7JuqhCIfUF7CfW1U0VFQZd3NpIms3iaRyoHueSKG+H7Tlh2IIsyaxjA 3snA== X-Gm-Message-State: ALoCoQmhXb1aP5Xyj5Zp541lMHBUaTCKB4SHvPKws9bMx9THgRfz7ZbPD+RwMRVY0b2vQMAY2yj4 X-Received: by 10.194.91.193 with SMTP id cg1mr12006517wjb.88.1443701110396; Thu, 01 Oct 2015 05:05:10 -0700 (PDT) Received: from localhost.localdomain ([85.106.4.244]) by smtp.gmail.com with ESMTPSA id x9sm5776346wjf.44.2015.10.01.05.05.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Oct 2015 05:05:09 -0700 (PDT) From: Mikhail Ulyanov To: hverkuil@xs4all.nl, horms@verge.net.au, magnus.damm@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, mchehab@osg.samsung.com Cc: laurent.pinchart@ideasonboard.com, j.anaszewski@samsung.com, kamil@wypas.org, sergei.shtylyov@cogentembedded.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, Mikhail Ulyanov Subject: [PATCH 1/2] V4L2: platform: rcar_jpu: remove redundant code Date: Thu, 1 Oct 2015 15:03:31 +0300 Message-Id: <1443701012-20730-2-git-send-email-mikhail.ulyanov@cogentembedded.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1443701012-20730-1-git-send-email-mikhail.ulyanov@cogentembedded.com> References: <1443701012-20730-1-git-send-email-mikhail.ulyanov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove redundant code. Following code line do what we want. Signed-off-by: Mikhail Ulyanov --- drivers/media/platform/rcar_jpu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/rcar_jpu.c b/drivers/media/platform/rcar_jpu.c index 2973f07..039bbbc 100644 --- a/drivers/media/platform/rcar_jpu.c +++ b/drivers/media/platform/rcar_jpu.c @@ -1555,9 +1555,6 @@ static irqreturn_t jpu_irq_handler(int irq, void *dev_id) dst_buf->v4l2_buf.timestamp = src_buf->v4l2_buf.timestamp; if (src_buf->v4l2_buf.flags & V4L2_BUF_FLAG_TIMECODE) dst_buf->v4l2_buf.timecode = src_buf->v4l2_buf.timecode; - dst_buf->v4l2_buf.flags &= ~V4L2_BUF_FLAG_TSTAMP_SRC_MASK; - dst_buf->v4l2_buf.flags |= src_buf->v4l2_buf.flags & - V4L2_BUF_FLAG_TSTAMP_SRC_MASK; dst_buf->v4l2_buf.flags = src_buf->v4l2_buf.flags & (V4L2_BUF_FLAG_TIMECODE | V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | V4L2_BUF_FLAG_BFRAME |