From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C2C2C43217 for ; Tue, 15 Nov 2022 21:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbiKOVm5 (ORCPT ); Tue, 15 Nov 2022 16:42:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232096AbiKOVme (ORCPT ); Tue, 15 Nov 2022 16:42:34 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286972E9F6 for ; Tue, 15 Nov 2022 13:42:15 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id t25so39448191ejb.8 for ; Tue, 15 Nov 2022 13:42:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3Nl9X2dBBteRxXc88z+X5/Ev/rJGuG6QGv1Den2poAo=; b=QwtGfdLExqGEA3JBttYR2zaNYjZe26Vt6/fFPWMuk54OnoMDs1FRgye8GpGvi457VX Ehd3UvkUHaqnWVtNl5Yhok3ciBieqGeJ9smgarRrEGrMZD8wJ+RyK21O1kVfszahcKAQ 1JfCR6GMKLmQcAF9S1lxq4qq8ETCraVQ14j3eil805xRkwv8JB1xNJfzM70HMHId4Jt1 PnNeXtzsgQz4YFIlo84bs2XPdiyl8yg7hne1bsU55rk10UVgYx+/WPW3qNUlFy+MHL95 y6N/nWy8aDChycA4rZleL+UpFoFcldr4dg3+v8PTbq1siLVeRsRHll6eGEfTe1Mtm8Mc kP6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3Nl9X2dBBteRxXc88z+X5/Ev/rJGuG6QGv1Den2poAo=; b=yG4FSU8woAqvw+aOOyh5kLGzBsISkHOJiEbbsByh2vQ+tA7725m3Eold0S6YB2dnB7 3wL7yAPWrpQ0aKCID/oQMBqSeyCv5c2Rl8iCQvUTBmHu5wk3oiRGZfNUQAkTQKAMD+Ub J+U+20XEAnzDQGUzdQTVzY60dOiFhT3xsKysyCm7Fd7qRfjaKu+jBnGh80HNKUPN/TWW 6FiBU60G3GVKAXTyr1X3O8en+r8LJYA0LQxuhYi10dczURxRcrtLZsT5YnXbp1VLdJwD ef7PfqihCorUid/2uiFdaw85JW5fZnC+llhGcfYEfX3hthqNvVfGS0acMhHI1Rr/UedR qupQ== X-Gm-Message-State: ANoB5pl1s6g9Hknw/eBFPh15sEjj/Hwj9a9mAMpW3JrAKqU2hYCGy1sC t2y6F9Wag7yKOxu1sakK9auQuENrEQREDjfT460qXddx3HI= X-Google-Smtp-Source: AA0mqf4Cv2JnITywTHhrkvL/GTP6vT4b3f6IswQJeiG7a8Mg9w83igu2bpdNd9+ZL4uYMG7Wi/gfCKeZ/s/hdK39c9A= X-Received: by 2002:a17:906:4911:b0:7ad:9891:8756 with SMTP id b17-20020a170906491100b007ad98918756mr15884330ejq.203.1668548533646; Tue, 15 Nov 2022 13:42:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Tue, 15 Nov 2022 22:42:02 +0100 Message-ID: Subject: Re: [PATCH] usb: fotg210-udc: Remove a useless assignment To: Christophe JAILLET Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Mon, Nov 14, 2022 at 9:38 PM Christophe JAILLET wrote: > There is no need to use an intermediate array for these memory allocations, > so, axe it. > > While at it, turn a '== NULL' into a shorter '!' when testing memory > allocation failure. > > Signed-off-by: Christophe JAILLET Fair enough! Reviewed-by: Linus Walleij I have sent some other cleanups to this code only yesterday, so they might collide and they you might have to rebase. Yours, Linus Walleij