From patchwork Tue Oct 21 14:55:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 5125761 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 86E35C11AC for ; Tue, 21 Oct 2014 14:55:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B05F20122 for ; Tue, 21 Oct 2014 14:55:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90335200E9 for ; Tue, 21 Oct 2014 14:55:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755165AbaJUOzo (ORCPT ); Tue, 21 Oct 2014 10:55:44 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:63021 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755131AbaJUOzn (ORCPT ); Tue, 21 Oct 2014 10:55:43 -0400 Received: by mail-lb0-f175.google.com with SMTP id u10so1193068lbd.34 for ; Tue, 21 Oct 2014 07:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=63BtuuF0nWqi9ubitwj2pNaIWcZvVll5FD+4c74rvpI=; b=WnqLZrDWKH3gKO74CLc2aqyQEQp3icnBps/bwuiI2UrfRlAQaUtoRdESutK9LdPsIR A9IKQnv9xQ5blFZmUznwAm/yQ9bUFxevmhmpvIyt8/PacdawQAkNuu/VkEub6tJWo9Sf xEq2s47r5i+ztBBL6lEk3kkAcj0bUcof58eN4= 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=63BtuuF0nWqi9ubitwj2pNaIWcZvVll5FD+4c74rvpI=; b=ZI3ziqqiEWs0DQjgMWmD3KAwEeq5Nf+GF0faWPZHYQJ8Kuezdukhlo8AkL4dvnqhIR SNS2/ypz9cY5i1BV5WXQGkZIUOnl0CCMhi4FIcc/tQEOjEYR4QtJfTFcRINHdlbENbeO ihRnwP9AgWoP5MvAiXrEmyW2HBaN35fZiROnquBQ2WTq5Pn+srEcfA1GLE/q7pO2jCet wXCv8h++xI7+uAm+XIWrVV5PWkIhjeZ19IWmbHTI+oIU2dv1bKJQYpiFFy020GByWCpT +cHgFwr8FUxU4oHrLoSnbbdc3VlAQq/H3lDzwO2WLJGx/XzGjcdgVqtdMmwoaAbIj8mY /Vrw== X-Gm-Message-State: ALoCoQlMi1AScWpmepVgvsla1DZneQ/nnNZ/HUL90kxYeXUBeO4zALqJXYMX3R5/E6z32bWwmP5Z X-Received: by 10.112.239.12 with SMTP id vo12mr17318493lbc.81.1413903342074; Tue, 21 Oct 2014 07:55:42 -0700 (PDT) Received: from spencer.imf.au.dk ([130.225.20.51]) by mx.google.com with ESMTPSA id rl6sm4640103lac.17.2014.10.21.07.55.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 07:55:41 -0700 (PDT) From: Rasmus Villemoes To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Rasmus Villemoes Subject: [PATCH] [media] s5p_mfc: Remove redundant casts Date: Tue, 21 Oct 2014 16:55:35 +0200 Message-Id: <1413903335-3196-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.0.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=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Both sides of these assignments actually have type "const struct vb2_mem_ops *", so the casts are unnecessary and slightly confusing. Signed-off-by: Rasmus Villemoes --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 165bc86..8daf291 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -815,7 +815,7 @@ static int s5p_mfc_open(struct file *file) ret = -ENOENT; goto err_queue_init; } - q->mem_ops = (struct vb2_mem_ops *)&vb2_dma_contig_memops; + q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; ret = vb2_queue_init(q); if (ret) { @@ -837,7 +837,7 @@ static int s5p_mfc_open(struct file *file) ret = -ENOENT; goto err_queue_init; } - q->mem_ops = (struct vb2_mem_ops *)&vb2_dma_contig_memops; + q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; ret = vb2_queue_init(q); if (ret) {