From patchwork Sat Mar 8 09:29:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 25916 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0CB6D2055F for ; Sat, 8 Mar 2014 09:30:47 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf12062714pdb.5 for ; Sat, 08 Mar 2014 01:30:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=HyzVOj1klV4sbxNCCGFT8XIF8XH0qaFrtmWzvV3gkpM=; b=G7en/j+VAbZIcPakKzbYzNaWOLSb0FQC20irC/atdnsLj3A8JyOxYBqoYesQlVaYfj XSdEsT/ByTad5Wzb80S+f3ztNI4BlVr3T8jBPfJwaY/r2DBFAlgZ7K1Mq0KSRehHuMOq 1xqxdec9k/TQZwnQ8Gcdgupw4wyUswWTwYSxdWxwhHnV2n3GCokYedm+XaQwVA97SPlz qyU90h62zShE3lFmBbt8URbw6NKCK1RRJOcYB/pTqLvgSBy8JdWw6CM9C8YiyZlRLuVN A1hPtV97xQSMAkA0m2Y0ItGLbX269adCwoX0VjZGoOPHrsWVY4kDx4XyosBOlbAs6l5+ 5k+w== X-Gm-Message-State: ALoCoQnIHvb10MpAUciWGffi2AhJimVkqDSpW2jUceDyDax3drG8sAOw62Pu4R9Mxk2wuTJcExz5 X-Received: by 10.66.146.65 with SMTP id ta1mr10064275pab.19.1394271047307; Sat, 08 Mar 2014 01:30:47 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.233 with SMTP id p96ls1459568qgd.33.gmail; Sat, 08 Mar 2014 01:30:47 -0800 (PST) X-Received: by 10.59.9.38 with SMTP id dp6mr404880ved.24.1394271047175; Sat, 08 Mar 2014 01:30:47 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ue9si2943292veb.130.2014.03.08.01.30.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Mar 2014 01:30:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id la4so1766917vcb.17 for ; Sat, 08 Mar 2014 01:30:47 -0800 (PST) X-Received: by 10.220.136.6 with SMTP id p6mr14057043vct.9.1394271047082; Sat, 08 Mar 2014 01:30:47 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp172784vck; Sat, 8 Mar 2014 01:30:46 -0800 (PST) X-Received: by 10.67.3.97 with SMTP id bv1mr27761281pad.54.1394271045521; Sat, 08 Mar 2014 01:30:45 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj6si10851934pac.291.2014.03.08.01.30.15; Sat, 08 Mar 2014 01:30:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752015AbaCHJ3k (ORCPT + 26 others); Sat, 8 Mar 2014 04:29:40 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:52757 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbaCHJ3f (ORCPT ); Sat, 8 Mar 2014 04:29:35 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s289TYtb008200; Sat, 8 Mar 2014 03:29:34 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289TXwr016129; Sat, 8 Mar 2014 03:29:33 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Sat, 8 Mar 2014 03:29:33 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289TUGW006693; Sat, 8 Mar 2014 03:29:32 -0600 From: Kishon Vijay Abraham I To: , , Subject: [PATCH 01/28] usb: phy: twl4030-usb: Silence checkpatch warnings Date: Sat, 8 Mar 2014 14:59:02 +0530 Message-ID: <1394270969-11851-2-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394270969-11851-1-git-send-email-kishon@ti.com> References: <1394270969-11851-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Sachin Kamat Silences the following warnings: WARNING: sizeof *twl should be sizeof(*twl) WARNING: sizeof *otg should be sizeof(*otg) Signed-off-by: Sachin Kamat Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-twl4030-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index c3ace1d..6c7cec7 100644 --- a/drivers/phy/phy-twl4030-usb.c +++ b/drivers/phy/phy-twl4030-usb.c @@ -661,7 +661,7 @@ static int twl4030_usb_probe(struct platform_device *pdev) struct phy_provider *phy_provider; struct phy_init_data *init_data = NULL; - twl = devm_kzalloc(&pdev->dev, sizeof *twl, GFP_KERNEL); + twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL); if (!twl) return -ENOMEM; @@ -676,7 +676,7 @@ static int twl4030_usb_probe(struct platform_device *pdev) return -EINVAL; } - otg = devm_kzalloc(&pdev->dev, sizeof *otg, GFP_KERNEL); + otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); if (!otg) return -ENOMEM;