Message ID | 1394476256-2902-5-git-send-email-balbi@ti.com |
---|---|
State | Accepted |
Commit | dad4babe419ef2f3e14447a650ce1f760a6ee9e0 |
Headers | show
Return-Path: <patchwork-forward+bncBC5M7T4HYEKRBYUK7CMAKGQEFUY7BXY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7658E2054B for <linaro@patches.linaro.org>; Mon, 10 Mar 2014 18:33:07 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf18358050qcx.2 for <linaro@patches.linaro.org>; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) 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:cc: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=lPFpsxkU76fhJfFU5tOlSfRfYnU/uadsFz2omlNlCtw=; b=c1jHN49oG2sbmhizVyS8yiWmSZs8McDTIAmxCsRSMChjcmemEt7pwpPWPDOT55yxjO 8Erw44G3n+0wami5cy/CZLcBhTG1AKMFQuV8dbzIUOgGRIG6yk7lPUhEG5j+EyNH5aG/ Op736Hyr60NV/DL3ablHToC8KiyBBaBO8qJtCxmu2qFIat3K9WkUgOyVwyog5gsrY1sT icEfNUAer056DHYaHUeexXKJarhKWH9wY++A9a6cgoQY/Diyz9HbG5mgEIsXxSnfec7Q GeKA9NaDMIF6FFXvY5gR+hIC5E7n8BZ/lGs5WE/Jn6INq/OOkCKzwKVZxZUmrt8p4e6b ATPQ== X-Gm-Message-State: ALoCoQncu6P0AFGV1lHQRb2PqxogM74mWT2kkgZE++jk8RxM9Eo+QgpuAfs88SvWkqHeJE0M0EPg X-Received: by 10.236.90.116 with SMTP id d80mr11922322yhf.16.1394476386959; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.133 with SMTP id b5ls1717268qge.38.gmail; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) X-Received: by 10.52.34.137 with SMTP id z9mr2890843vdi.12.1394476386818; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id p9si5663456vdv.109.2014.03.10.11.33.06 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 11:33:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id il7so2531340vcb.32 for <patchwork-forward@linaro.org>; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) X-Received: by 10.52.34.137 with SMTP id z9mr2890839vdi.12.1394476386733; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) 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 i9csp139267vck; Mon, 10 Mar 2014 11:33:06 -0700 (PDT) X-Received: by 10.68.143.34 with SMTP id sb2mr41829452pbb.135.1394476385828; Mon, 10 Mar 2014 11:33:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo5si17591003pab.237.2014.03.10.11.33.05; Mon, 10 Mar 2014 11:33:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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 S1753513AbaCJSc6 (ORCPT <rfc822;patch@linaro.org> + 3 others); Mon, 10 Mar 2014 14:32:58 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:37318 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753491AbaCJScy (ORCPT <rfc822;linux-usb@vger.kernel.org>); Mon, 10 Mar 2014 14:32:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2AIWcff019991; Mon, 10 Mar 2014 13:32:38 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2AIWbDT025444; Mon, 10 Mar 2014 13:32:37 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Mon, 10 Mar 2014 13:32:37 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2AIWbax002739; Mon, 10 Mar 2014 13:32:37 -0500 From: Felipe Balbi <balbi@ti.com> To: Linux USB Mailing List <linux-usb@vger.kernel.org> CC: <changbinx.du@intel.com>, <m.grzeschik@pengutronix.de>, <kyungmin.park@samsung.com>, <mina86@mina86.com>, Felipe Balbi <balbi@ti.com> Subject: [PATCH 4/4] usb: gadget: composite: switch over to ERR_CAST() Date: Mon, 10 Mar 2014 13:30:56 -0500 Message-ID: <1394476256-2902-5-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394476256-2902-1-git-send-email-balbi@ti.com> References: <1394476256-2902-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain |
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index d742bed..fab9064 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1139,7 +1139,7 @@ struct usb_string *usb_gstrings_attach(struct usb_composite_dev *cdev, uc = copy_gadget_strings(sp, n_gstrings, n_strings); if (IS_ERR(uc)) - return ERR_PTR(PTR_ERR(uc)); + return ERR_CAST(uc); n_gs = get_containers_gs(uc); ret = usb_string_ids_tab(cdev, n_gs[0]->strings);
This patch fixes the following Coccinelle warning: drivers/usb/gadget/composite.c:1142:9-16: WARNING: \ ERR_CAST can be used with uc Signed-off-by: Felipe Balbi <balbi@ti.com> --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)