Received: by 10.213.65.68 with SMTP id h4csp719935imn; Fri, 6 Apr 2018 07:49:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/JJ5gt44oh7VnBkb+ZG9Q5XAAfC4SCpHAc6OgJJMMDbm0DTKgNbtUijezIkFoAO9VYK5c6 X-Received: by 10.99.98.134 with SMTP id w128mr17961516pgb.217.1523026178998; Fri, 06 Apr 2018 07:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523026178; cv=none; d=google.com; s=arc-20160816; b=YE3thwYCsR87CboH/RZsM/CyrwV+edSAB1cuJoLaaZBASD/7WVXbpMufEq38sdWRcl TzSuGsECqzr2rJfOkfl83UMd61U7gs1qQCLTpFOdfct/moSFF9zxslg4/J6M3bn1S5eQ o04qXhpwXb+rTFgNd08rPdeeIq0RBTg34rKqIkPmb7KhVXrAAr1D2urNkkaVkZ1kuJqS AY30fu/e8f/pVeHBNpe56wP4aC4LJ+4q+SCiNjMGPg+j173sflWJE7ExwukcHqW1XgZQ BlhzPQNDjt7KIIHgMQHuptB5rk2gl4a9Xl/GgsNAsJPjs3KL5aJobM2QdadqflarJxtc Juig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FrLX3Y+7xQTAnT2XyVjcUcIaAg3ynCShZwnhBRmPqwE=; b=HY8xzy88jlClUYAbMwljrQo9nl1qaBtqevMu46roXrdSNXEwJ0lni05GsF1MeAgYN2 SlLs4Kv5zx7WuWobx4IhWQSoW/nZhvSN0GP97WGL5RLVPli/cyxParzkQ09T+quO9X+z I6/sVq+zPS+5T3NRG6XBNfqpCL/pBGzKq9k0dd+08wb9UC4KMxb/dgeDSwaNWHzGtTvo 9wwZaZmXODJ2ASguOP+NrolJ5OtjZRvlNPyQLs6KvlLccZlXL9DFiilfOKcXRJ2BZaYg yeLKN51M/t7dz4rmqOZ6IvjdvIGiqbhfQzZS3ey579SWI8UofQpTrm1n3Vq/1lvC3fA/ TXuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si8012950pfa.170.2018.04.06.07.49.24; Fri, 06 Apr 2018 07:49:38 -0700 (PDT) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755603AbeDFNd1 (ORCPT + 99 others); Fri, 6 Apr 2018 09:33:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57882 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755573AbeDFNdW (ORCPT ); Fri, 6 Apr 2018 09:33:22 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2B882CE8; Fri, 6 Apr 2018 13:33:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Opasiak , Peter Chen , Stefan Agner , Felipe Balbi , Nathan Chancellor Subject: [PATCH 4.9 023/102] usb: gadget: remove redundant self assignment Date: Fri, 6 Apr 2018 15:23:04 +0200 Message-Id: <20180406084334.866211955@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Agner commit 8a8b161df5ce06ef5a315899f83978e765be09e8 upstream. The assignment ret = ret is redundant and can be removed. Reviewed-by: Krzysztof Opasiak Reviewed-by: Peter Chen Signed-off-by: Stefan Agner Signed-off-by: Felipe Balbi Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -139,10 +139,8 @@ int usb_ep_disable(struct usb_ep *ep) goto out; ret = ep->ops->disable(ep); - if (ret) { - ret = ret; + if (ret) goto out; - } ep->enabled = false;