Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1421936iog; Thu, 16 Jun 2022 06:09:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utX17ZUBpuVPzcvOKygryn4iwysCwzXwvif5LF7iL7+VUF4R2/XjTrgzT5PwM9jLs20xzu X-Received: by 2002:a17:90b:2404:b0:1e3:4db0:f32a with SMTP id nr4-20020a17090b240400b001e34db0f32amr16057306pjb.201.1655384962272; Thu, 16 Jun 2022 06:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655384962; cv=none; d=google.com; s=arc-20160816; b=opDqImeCRP4TTqBpLdUlzBK7g1TsSXV5oZfusQ46wtYQAUcKHbXRA1/FxsulC6izSY dTbAPxAztxsJcyB+kMhVGMEn8F404IdpgFnzgQNOsVUpiPDtBaEkV/2czuf1mZQGl8Pu DeyM0onqVYLC3ece6B7znNuo5QQNeuPW4phh1Q1OF1/X8uU8GjmKWTTwqrgtopW4GocB w7+PwNsbiSWcL6rqRHoqeIkvxDnwBluAvl3no5xYSMEF6rC19C9ArPtDJNsos+c245N8 wMlnbusbPAt6qrapZVs5r51tcp0hDSAWn8QWQuv7OMNss81TWzl0YyIqLYh+gc/EpRCH tIIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aM7W+IbTZllbP9bwce2OF7b7/jySkDE1I5FfH7XqgI8=; b=yjqzhhm8M9rEbkXzgs8ITAUbxlUiNTV2F9soMP4TfTLul86Qvib5Pbv4GI5yvoBahB mDm3ZA3e9yCU372B6KE1AKhRChfY0p6EiEpDP7llTUegt2t5Jukg3UbNYdxl79ldXhYT +Li+7AMpyRmq8MgDMTKo96BojzwaE2skq+pVnAB+F762EklOLw63R/hfXLSq+d3S3j3T 1VKPnt2L22E9+4caUB1eKF5+FllgaN8D35hL6bEYglegSYSqnMEWaiIIvDV1fsqHjLfg yu5Pb4mUKw+XybGS74OuyFHBCh3hIr3vpnWYNdXSLEbbW8TveFns71udL+yBg6e5tVJb jNsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTLscLa0; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6388c3000000b0040a88edd624si2319221pgd.836.2022.06.16.06.08.59; Thu, 16 Jun 2022 06:09:22 -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=@linaro.org header.s=google header.b=UTLscLa0; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376782AbiFPNIQ (ORCPT + 65 others); Thu, 16 Jun 2022 09:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376754AbiFPNIP (ORCPT ); Thu, 16 Jun 2022 09:08:15 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2332228F for ; Thu, 16 Jun 2022 06:08:14 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id w2so2085972ybi.7 for ; Thu, 16 Jun 2022 06:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aM7W+IbTZllbP9bwce2OF7b7/jySkDE1I5FfH7XqgI8=; b=UTLscLa01r4NO1+RKlggp8DofMmfPmN4Lzkv0wYG/b2NhhS5SvPkgr8eEGMEF0mA6A G9++dkrA4kLgQj3DYQ5drnMY2r8f5JCd3JP0odAnSldrWIVm9RzLfK7Kp1LXRtxgZNAQ AetaZIC5JTDM9ey+zcceqkQmKyQfbXrdgk+q00+yoLhu1W9DbB3BVTXN3qjvBpNDG0cQ sON6MwzCZVdRx3Amg0Xnf0SpnJQLEWg9zMpR6A65BCErCoSpJ7kY3j/uD25nATZnCJR+ VOMAUlWh5q1aN9SvTQwsBoRu9jy2QB0enXth95XdWSWfAq6jHa4M1oMpOcHUgVn8AaXG o7oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aM7W+IbTZllbP9bwce2OF7b7/jySkDE1I5FfH7XqgI8=; b=eNdhVUYLWjnGZKHZALCn0G/KFMtueT9XkhNh5C+DSrA04ShIvlxb686riWTmBmnxis k7+ZfquXNU4g5AwnKRQw+FkYEBmxNjoDHGB7IIEfcJg45w+sojrRZQKiOcY6f+fTNTmZ CchseEwvcxTugYFfi/4LgqXYe9+7Uuvo5od/nmfy+PifLbSu9CD8vp42biFm35DCyIEM TuOomfbr+fMy5KdrCdrPBefuMCbD1VQuOL8Jz/GFkd1rMOkJwx1DI8JgLQpbFMp9u28N y38So5MyQq0ByD3D8AmlxZhDNQ0gh709YVOy0RGmaKnf95WcJ+gOCP4/VaPEE4kq380k Av4Q== X-Gm-Message-State: AJIora9vks5C3a/YpzGu3MxZEmaPNKpXCp0pKqjpKp/q7zUBmfrg/dF0 xU+PYxAktZO4AO6c2xckLiNq7Qcsf7TPyPcHmzvAQA== X-Received: by 2002:a25:8387:0:b0:664:7589:27b9 with SMTP id t7-20020a258387000000b00664758927b9mr5242155ybk.291.1655384893665; Thu, 16 Jun 2022 06:08:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Thu, 16 Jun 2022 15:08:02 +0200 Message-ID: Subject: Re: [PATCH] brcmfmac: use strreplace() in brcmf_of_probe() To: Dan Carpenter Cc: Arend van Spriel , Johannes Berg , Franky Lin , Hante Meuleman , Kalle Valo , Len Baker , Shawn Guo , Hector Martin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On Thu, Jun 16, 2022 at 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. > > Signed-off-by: Dan Carpenter > Suggested-by: Johannes Berg Reviewed-by: Linus Walleij Yours, Linus Walleij