Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp535877iog; Fri, 17 Jun 2022 08:15:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tI3iqkeJ2b0aCC2ZhVm/UVGFFBjTHojvQlgWJ1sINQzLx0tcEE1pwxQqQ2BOzdS/KxNEpl X-Received: by 2002:a05:6402:3299:b0:42d:d630:7ce1 with SMTP id f25-20020a056402329900b0042dd6307ce1mr13089202eda.136.1655478916769; Fri, 17 Jun 2022 08:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655478916; cv=none; d=google.com; s=arc-20160816; b=orPSR5KY3ryEzgG2kY127jvBj80RPrHlDycpMfG0rVLjkMMz61j9j1Dgrs0UOhJHo+ 3qRSgMd2IUQIbo/lIYm6GkrvQb+H5fCoOmDzX5fjU+GMJB6qpZ4E8d3hw8BZZFTLct6A 9b4l7bILAWAQa+9nqgZey6ELamfrjNgjQ7KgrjjGruFAG1pGfz+6YWWmcF8lvmq/rA3Q gO9NuNFS6w1XZa2BPPW5A6RLLp679KLGpSYL40MangWL/VVBBWn6Vsa7AkOJYAvDLqPc EdjzsRqsDETtNMMLVs09z/2PFFsQqZVok2jIHUq22yg407JyZdU1hZl4FjyF8JTq+hGL f+Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=c7nWqaHyL8BmFqCRZp28h5Olh43GbQ2U7+V5rtSDP9E=; b=fpXQNbV+KKJBFjU6p5q+BKCgwwcCZaNsGIvszEbmegr/aS7sOfR45DZuTymoAeleWt YYMe1IryhPQTv9l8FTGy4kMVArAuPyAiCiWfKI8yYwjpRufudFZHKVc2xBets8kk7Svc Ra4ypDD+Qn8jSknhv+iyNz/3Um2kZXh9R0Xy304U+lLhk6oMWtYbvBeMyebr1jOMEnbM UaXCkMH+9+NhxOQqiTguBSyls8Qxk5LPwaedAZ+Gv91VlQE73JWZW8TxhaYldHUtqsFF gcSbJ7egJni672bECTKkwvpIHImFVs7PQJvOPw4N5BSwQxik9lASiQkZDcVgRuD00+Su PMAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=giIsYR60; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt8-20020a170906b78800b0070795e99fe3si4132477ejb.984.2022.06.17.08.14.54; Fri, 17 Jun 2022 08:15:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=pass header.i=@broadcom.com header.s=google header.b=giIsYR60; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383095AbiFQPOc (ORCPT + 65 others); Fri, 17 Jun 2022 11:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383098AbiFQPOa (ORCPT ); Fri, 17 Jun 2022 11:14:30 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180963A5CA for ; Fri, 17 Jun 2022 08:14:29 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id x1-20020a17090abc8100b001ec7f8a51f5so837514pjr.0 for ; Fri, 17 Jun 2022 08:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=message-id:date:mime-version:user-agent:subject:to:cc:references :from:in-reply-to; bh=c7nWqaHyL8BmFqCRZp28h5Olh43GbQ2U7+V5rtSDP9E=; b=giIsYR60b6MmZe62Qm4jbSM5A+OQhYoyY5gw7K+HHk36wh3RQPNazpPY6SA+a7uYne 6k4VFr8dzPtDloxxNmtI7ehCXEkgeY/wVwcruXt/GxmWa108Wdh53TmDTlvjc66RAC+l hAHKuIqSUpRiPX71+TPYdgMIvvYX5MGMoTZRY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :to:cc:references:from:in-reply-to; bh=c7nWqaHyL8BmFqCRZp28h5Olh43GbQ2U7+V5rtSDP9E=; b=oPUquxcqpL5EZE8a0vRks4PBGqbIAxlB3ivv45O4/gCdHd9lZMSpF4uqrXgcLMGC1P O/pRUiIITsYJO4B4XILfABMETcRE7/3iWoHriyQ3y8cwf4O1xJt6ltD8amFQV1udUpwQ Flg4f/N9H3cByfFYPi7NNuTkz7cI2frTBYp25tnHoE6e73glsHJT5y5rG3MkbN3Nw0yL 8TSRv9YsCWhxp1DlB9Gzfyb891CN/Ow3rY98gdWiGdE/TAiG1aZAkz9jHpJibUnL4x/f 2xj4stqJ8cwC+dHxvM9z5BzXp6ajDZZic5cY3AwPPKR1/iXz6PSnicz8wXW/L49xE7oP PDbA== X-Gm-Message-State: AJIora+sVAF2M0/41O6bROm6BTJLEAv2Vie+vcZbgKUf7DobFc9isAjc 3FOcCL8KUMrHExhYnhVKyq+Wwg== X-Received: by 2002:a17:903:1cf:b0:165:1395:dcc9 with SMTP id e15-20020a17090301cf00b001651395dcc9mr10266420plh.88.1655478868534; Fri, 17 Jun 2022 08:14:28 -0700 (PDT) Received: from [192.168.178.136] (f215227.upc-f.chello.nl. [80.56.215.227]) by smtp.gmail.com with ESMTPSA id e11-20020a63744b000000b003c25dfd7372sm3892568pgn.26.2022.06.17.08.14.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 08:14:27 -0700 (PDT) Message-ID: <646e9821-5fb0-98ee-0ead-17d9b2b15437@broadcom.com> Date: Fri, 17 Jun 2022 17:14:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] brcmfmac: use strreplace() in brcmf_of_probe() To: Dan Carpenter , Arend van Spriel , Johannes Berg Cc: Franky Lin , Hante Meuleman , Kalle Valo , Len Baker , Shawn Guo , Hector Martin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, Linus Walleij , kernel-janitors@vger.kernel.org References: From: Arend van Spriel In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e90ef705e1a63540" X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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-wireless@vger.kernel.org --000000000000e90ef705e1a63540 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/16/2022 9:54 AM, Dan Carpenter wrote: > The for loop in brcmf_of_probe() would ideally end with something like > "i <= strlen(board_type)" instead of "i < board_type[i]". But > fortunately, the two are equivalent. > > Anyway, it's simpler to use strreplace() instead. Acked-by: Arend van Spriel > Signed-off-by: Dan Carpenter > Suggested-by: Johannes Berg > --- > I sent something like this last year but I did something wrong and it > never made it patchwork. This is basically a new patch. > > drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) --000000000000e90ef705e1a63540 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQdwYJKoZIhvcNAQcCoIIQaDCCEGQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3OMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PAQH/BAQD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