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: 7308311 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 208ABBEEA4 for ; Thu, 1 Oct 2015 12:05:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF4432060A for ; Thu, 1 Oct 2015 12:05:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D379720640 for ; Thu, 1 Oct 2015 12:05:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933332AbbJAMFT (ORCPT ); Thu, 1 Oct 2015 08:05:19 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:33603 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933214AbbJAMFL (ORCPT ); Thu, 1 Oct 2015 08:05:11 -0400 Received: by wiclk2 with SMTP id lk2so29857750wic.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=a3QboymuOFgeAT+5m5p/fWc4VHehlSjrzqvywLG18S8LIQGISLVAXU5eOCsE0WhsK3 imXJmWeMP4Cr8lKXH3J5wRaqAiFD7PvqTgQNWoDiqBdJoHmJF6tPWvEKfWF6kVP4T3P9 ta+zvdq35HjW+3F9qmY/QYhbVLRp6fsvyrq9yWePMK8wsM2EvBJDY3Eo9WsWGxNv1EO2 4PIc0pWIHAMGGaU+glSAAZJtO43wFc4dZLSTmBn1jz65IglpI69l3iEq/idpaUm5WQj3 Nc+vsYVQ3XN4cLksbWR57e99Y8YK7eZr2h62cB6vIsq4B7qq+Wgv0p02Yq/1Sn/4Xbi8 GRPA== X-Gm-Message-State: ALoCoQmrtySuYPgW8RtSjrutJjSZDUYLgw0Qhm+WG6yXleZsueCitK9KPq0Muv5ie2gDO8QarDEJ 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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=unavailable 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 |