Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2583545iog; Sun, 26 Jun 2022 20:58:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJmKBj3/xujeRY5b7v5RLn/IR40SzVSVZvbPUgPx/xG1YVYEExBbeXRy79qUQIAdmvvtDn X-Received: by 2002:a17:906:38d0:b0:715:8483:e01e with SMTP id r16-20020a17090638d000b007158483e01emr10891134ejd.265.1656302280178; Sun, 26 Jun 2022 20:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656302280; cv=none; d=google.com; s=arc-20160816; b=nhReu+Nw51cUVvSLLkxf0I+MQxDac0Tv7OVI7UYNYb+5VoGZzyHyvw1uT7nZSILTzf +2GfwDAoQKse6QebJNmkWtv2JkKc2sIkwUSIPOZ7PeceacJf4B8ccqOosL24J3zp5EW4 sFmRrueXK26HamzsI4w4JtrOQYoPon+uQneTDE0BvmKeuGUSqsuKxYJkF4/oNgqnKdAK BOxKwcmBQSIwJi5/xDpYxZ632MW5VFQ23OgiF68NlOlKjlugLIBPqCTsyVkvWfxDyjd5 T8YN9/UXOREfxrzeHejIm26AFx3qyLcj7C0npIW7QUlD9rIaU4GhczLUHpI3lnc2cUMC EBVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ghgEC5KKZzVeMn2wBHvXL3OBwI82bDlyEjaTZhdIzzE=; b=qIQ/4SdU0fyNM6Z7yHN027dJvULVJDKcgjRaITOILR8xnyCNWBqVOvC2M1U/5rgrqF D7qq6t6ZKuVrIIuUBNAE5x/xX8bhvy9DRCBC8n9tXRkWQOhSGSniwQM3584+obIZI4Y+ jifOQYhLWg5Q7KN9dXOa5qS9DGEynjxqXbOtiq/9IOqfs1YP+ZuAaZKmGbXyw9zjWmA4 RrJBcWEPwLCAUN0NnSqLypktyo00TuQjbtNGn7ZonjzqZs17W/8W7jYi/EkgaJNSlyCT skNpfA/iiznCaSS9R/TwxlGssQpKw8XmxENqbuueigieGdIwFTaexkZehBfEVZARiOSi 1maA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a17090791c100b00722e6656ea0si8628922ejz.401.2022.06.26.20.57.34; Sun, 26 Jun 2022 20:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232418AbiF0DLs (ORCPT + 99 others); Sun, 26 Jun 2022 23:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbiF0DLr (ORCPT ); Sun, 26 Jun 2022 23:11:47 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49601388F; Sun, 26 Jun 2022 20:11:46 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 23D241E80D5E; Mon, 27 Jun 2022 11:10:54 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7PXBy4w9chS; Mon, 27 Jun 2022 11:10:51 +0800 (CST) Received: from nfschina.com.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhounan@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 7302F1E80D11; Mon, 27 Jun 2022 11:10:51 +0800 (CST) From: zhoun To: gregkh@linuxfoundation.org Cc: balbi@kernel.org, jakobkoschel@gmail.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, lutovinova@ispras.ru, zhounan@nfschina.com Subject: [PATCH v2] usb: remove unnecessary mv_u3d* conversion Date: Sun, 26 Jun 2022 23:11:08 -0400 Message-Id: <20220627031108.12246-1-zhounan@nfschina.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhou nan remove unnecessary mv_u3d* type casting. After analysis, the two u3d objects have the same type. Signed-off-by: Zhou nan --- drivers/usb/gadget/udc/mv_u3d_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index 598654a3cb41..102278a71307 100644 --- a/drivers/usb/gadget/udc/mv_u3d_core.c +++ b/drivers/usb/gadget/udc/mv_u3d_core.c @@ -175,7 +175,7 @@ void mv_u3d_done(struct mv_u3d_ep *ep, struct mv_u3d_req *req, int status) __releases(&ep->udc->lock) __acquires(&ep->udc->lock) { - struct mv_u3d *u3d = (struct mv_u3d *)ep->u3d; + struct mv_u3d *u3d = ep->u3d; dev_dbg(u3d->dev, "mv_u3d_done: remove req->queue\n"); /* Removed the req from ep queue */ -- 2.27.0