From patchwork Thu Dec 24 20:06:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 7919921 Return-Path: X-Original-To: patchwork-linux-media@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 346639F716 for ; Thu, 24 Dec 2015 20:11:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E998D20260 for ; Thu, 24 Dec 2015 20:11:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 927E72024F for ; Thu, 24 Dec 2015 20:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbbLXULU (ORCPT ); Thu, 24 Dec 2015 15:11:20 -0500 Received: from mail-qg0-f47.google.com ([209.85.192.47]:34568 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbbLXULU (ORCPT ); Thu, 24 Dec 2015 15:11:20 -0500 Received: by mail-qg0-f47.google.com with SMTP id 6so24558033qgy.1 for ; Thu, 24 Dec 2015 12:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ZKxBXStQa45J5V4exR3GiJRUTDEROPMLuVmOlCMJMEc=; b=nHpKg0p11RKkD0iX8YfztZo/duhEcITJ0DFyJWT5ylMypa1KuVuUrnwDR0hcDhyc8I oPnO1/Va8z24BtRk3mtm2GhlyrgIx5wZazLUTM2V0T1w96dkE3906WttxiDGSRRiN7nd c1i85tMYIxrCCGy05pxGf0TFxUb0fV8CqtRByuxojC0KrxFWbOEKvYmzOPuC8w+XlhDo IBzzaMB/LGMNzpQAjlklHXnqj9uziHxdSXpSxlP5tXT0blqnkOIARRwDuVTBczouiQE0 xlcr4hUjXwI/eGmbgWaLu9s3T9DHD5v4rpw5D+ZMaBakzsXDKGee8P+o7fENHXNtrk4H J6OQ== 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; bh=ZKxBXStQa45J5V4exR3GiJRUTDEROPMLuVmOlCMJMEc=; b=K9c7ojPo96rTvO6arsdPYCL/mK/qOUdoBwq6hUFIQfjHsWm3yi2LJi37BG8hRLSrRW NW0gWIqXEcSyKcU2/0W/tlt44f8QvvZ4MXL+XAiwEQ7yIVM4irOCimOsvUiG9EMxVqvY bSWTUIeVcK4ubSJfhV4z7a2IiIvS0csrWF8adjOWuMBXMEQ3XI9juBeDAASM599hjftJ OgaANUhkKwzPeYb3ZtFjqHl47QMJR9J4jY+05/OlQeXBP4JyOJNzudYnLtIwDVG46McQ w9tbIUdAmxyrOwtnQTenSubgBvFfECcnuWNBKZTumHvMhN185KdpKicqOUudYmom1ge9 KCSQ== X-Gm-Message-State: ALoCoQnYNTV0OVmK4S3j6C0avdbMt8+NkrV4Wzq4FktYcdUrMgrlciO/eVl3HnFXQe8Lxc6AbHMq7T8VVSox9oa7QTRVTJXT3w== X-Received: by 10.140.32.194 with SMTP id h60mr50053317qgh.79.1450987879364; Thu, 24 Dec 2015 12:11:19 -0800 (PST) Received: from localhost.localdomain ([190.2.108.156]) by smtp.gmail.com with ESMTPSA id e127sm20648659qkb.34.2015.12.24.12.11.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Dec 2015 12:11:18 -0800 (PST) From: Ezequiel Garcia To: Cc: Hans Verkuil , Ezequiel Garcia Subject: [PATCH] stk1160: Remove redundant vb2_buf payload set Date: Thu, 24 Dec 2015 17:06:45 -0300 Message-Id: <1450987605-3864-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.6.4 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Calling vb2_set_plane_payload is enough, there's no need to set the planes[] bytesused field. Remove it. Signed-off-by: Ezequiel Garcia --- drivers/media/usb/stk1160/stk1160-video.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c index 46191d5262eb..6ecb0b48423f 100644 --- a/drivers/media/usb/stk1160/stk1160-video.c +++ b/drivers/media/usb/stk1160/stk1160-video.c @@ -98,7 +98,6 @@ void stk1160_buffer_done(struct stk1160 *dev) buf->vb.sequence = dev->sequence++; buf->vb.field = V4L2_FIELD_INTERLACED; - buf->vb.vb2_buf.planes[0].bytesused = buf->bytesused; buf->vb.vb2_buf.timestamp = ktime_get_ns(); vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->bytesused);