From patchwork Mon Mar 10 18:30:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25996 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 E97D22054B for ; Mon, 10 Mar 2014 18:39:54 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf18180116pdb.9 for ; Mon, 10 Mar 2014 11:39:54 -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=3YtwvvGT0IO/3H0cZMwzkVo1oSbU+qt5hYlB6JNJDao=; b=CCO1h5Ahwh4fwNxCz8sYMcJrjNlKolSL8CZ1wv8jAbFBLlypmjeOHS5Nwyv6ja2HE/ AWF5vO2Kl9SpPTgNRKIuI1GTV+vqUroL9uQJRumGZj+1J4B7L+rntAGTCLGlQvXiomAz eo29N6lqxeY5D145PJz53En0uqoHx0Kld2JpiWtYJ6fm7DD6xBKXuwj7TZ+EXVH72YlJ AiiLYz6zm5Gn1mYcQhjkqQnFyHAGWSxL9s93jnXSK55Plh5+t047+qvRxVuzjsuoi/Dn XFWXSVOq9xPQl+MFFAUYoXRa101p3fANS4OhRJ7yrCNn81TodH+lkRad3CTeV32n58S+ j/Xg== X-Gm-Message-State: ALoCoQkjcAQgNwMIQ/JH3e/Y6ABdiX4nkny8tpb2V4Uy54G5J0AxSugi/x+Oh0jyeIb2q2hS6CJy X-Received: by 10.66.149.67 with SMTP id ty3mr14200760pab.27.1394476382301; Mon, 10 Mar 2014 11:33:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.200 with SMTP id p66ls2156550qgp.74.gmail; Mon, 10 Mar 2014 11:33:02 -0700 (PDT) X-Received: by 10.58.165.68 with SMTP id yw4mr24640270veb.17.1394476382150; Mon, 10 Mar 2014 11:33:02 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id e9si4963039vcf.124.2014.03.10.11.33.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 11:33:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so1737012vcb.11 for ; Mon, 10 Mar 2014 11:33:02 -0700 (PDT) X-Received: by 10.58.209.36 with SMTP id mj4mr43647vec.47.1394476382073; Mon, 10 Mar 2014 11:33:02 -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 i9csp139251vck; Mon, 10 Mar 2014 11:33:01 -0700 (PDT) X-Received: by 10.68.170.36 with SMTP id aj4mr42365911pbc.54.1394476380329; Mon, 10 Mar 2014 11:33:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si17603570pbl.153.2014.03.10.11.33.00; Mon, 10 Mar 2014 11:33:00 -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 S1753495AbaCJScy (ORCPT + 3 others); Mon, 10 Mar 2014 14:32:54 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:37534 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753457AbaCJScw (ORCPT ); Mon, 10 Mar 2014 14:32:52 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2AIWa8O014607; Mon, 10 Mar 2014 13:32:36 -0500 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 s2AIWZEc020931; Mon, 10 Mar 2014 13:32:35 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 10 Mar 2014 13:32:35 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2AIWZJJ005128; Mon, 10 Mar 2014 13:32:35 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: , , , , Felipe Balbi Subject: [PATCH 2/4] usb: gadget: f_subset: switch over to PTR_RET Date: Mon, 10 Mar 2014 13:30:54 -0500 Message-ID: <1394476256-2902-3-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: 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.180 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: , this patch fixes the following Coccinelle warning: drivers/usb/gadget/f_subset.c:279:8-14: WARNING: \ PTR_RET can be used Signed-off-by: Felipe Balbi --- drivers/usb/gadget/f_subset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c index f1a5919..df4a0dcb 100644 --- a/drivers/usb/gadget/f_subset.c +++ b/drivers/usb/gadget/f_subset.c @@ -276,7 +276,7 @@ static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) } net = gether_connect(&geth->port); - return IS_ERR(net) ? PTR_ERR(net) : 0; + return PTR_RET(net); } static void geth_disable(struct usb_function *f)