From patchwork Thu Aug 23 13:08:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 1366971 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 641413FC66 for ; Thu, 23 Aug 2012 13:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758623Ab2HWNIl (ORCPT ); Thu, 23 Aug 2012 09:08:41 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:36090 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751635Ab2HWNIk (ORCPT ); Thu, 23 Aug 2012 09:08:40 -0400 Received: by yhmm54 with SMTP id m54so166064yhm.19 for ; Thu, 23 Aug 2012 06:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=wrCzZIJCrcHnpM6R1KHG2KFYzII/frCSGH4tCLn/w94=; b=JAqL03J0H0/lnn5JiTuEs5ZQ2NbOxV+dULOu+plrxa4oRBlDAnz4noPU2D3URcPWeo YV7RPp1S1CzDSpyA4KS1We44h4llFY4n51/cNodFa70AkiynKdX0Te0NhOfv3HWfSEyE 6FjonGsCioHqTL9fQVv1o2yyrieCotQxT/MMeQPCeGsUfgxRSE5Y+QraN2JBxyc9giyL iEWcFXFhVJq/MpFjoxI1SLwyv/FWKmGFl4pZ57ho4O4Hgz43YAomklrnBNFrxOKGjPhY f6TQgSWzVUEZokdtfxt0u2eMP70P4ZIN/OrKLyOLLblyyHqsT0u7peB+5K/IxFBPM6fP cwYg== Received: by 10.236.117.97 with SMTP id i61mr1137628yhh.73.1345727319618; Thu, 23 Aug 2012 06:08:39 -0700 (PDT) Received: from localhost.cpe.express.com.ar ([200.81.126.15]) by mx.google.com with ESMTPS id v5sm6703664anj.16.2012.08.23.06.08.36 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 06:08:38 -0700 (PDT) From: Ezequiel Garcia To: Mauro Carvalho Chehab , Cc: Ezequiel Garcia Subject: [PATCH 01/10] stk1160: Remove unneeded struct vb2_queue clearing Date: Thu, 23 Aug 2012 10:08:22 -0300 Message-Id: <1345727311-27478-1-git-send-email-elezegarcia@gmail.com> X-Mailer: git-send-email 1.7.8.6 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org struct vb2_queue is allocated through kzalloc as part of a larger struct, there's no need to clear it. Signed-off-by: Ezequiel Garcia --- drivers/media/usb/stk1160/stk1160-v4l.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c index cc5a95f..fe6e857 100644 --- a/drivers/media/usb/stk1160/stk1160-v4l.c +++ b/drivers/media/usb/stk1160/stk1160-v4l.c @@ -676,7 +676,6 @@ int stk1160_vb2_setup(struct stk1160 *dev) struct vb2_queue *q; q = &dev->vb_vidq; - memset(q, 0, sizeof(dev->vb_vidq)); q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_READ | VB2_MMAP | VB2_USERPTR; q->drv_priv = dev;