Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp262905lqb; Sat, 16 Mar 2024 03:16:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrdLimscTvOp2Q5Yai84fACK+8eurTWD2HAMNX4OV5aLpfz+snJtX7MHFi5fkvrAAWApYcQJvxsbVLDNvuFoQUhnq70x0J04Yl5eiKDA== X-Google-Smtp-Source: AGHT+IFU9HjrLwI+J+gcIgwCn01eZ+OinQ/PI65ocWcaOjD6jMN+qtIa0VVjnCkr0EL1y/l7YQJd X-Received: by 2002:a05:620a:3722:b0:788:2f7b:ca with SMTP id de34-20020a05620a372200b007882f7b00camr8705080qkb.19.1710584192492; Sat, 16 Mar 2024 03:16:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710584192; cv=pass; d=google.com; s=arc-20160816; b=SiDvdG+AYUvjb1Fvj0eC7GbZD3jpT1BOFLexnUfFofN9iFQo6mOf0Xq0G+Jlxmq6Ho H/Q37FFhdVwN6jVM2pBaPWivi8PFuDwuH+gN2KpTGKrZgvil0fDLgIWTKErkMW1pze5G 6CH5+7iZG5coM9omb4h3rRJiE5hN0DN34wg/lFHrYgEf5tjUFgo2+4vAtiI5bJMoFfrE 82rLdxD5nrqr1qjoRH/zHgi4bAQh60Gb7WS3hzhENpkSx9Uji6nHfyEAPCWtqs50VSyf UoKpxq6hErt/xnnJDGJHNQJLZmHQuG+wA8Uq/thRgNL9a4Ebq+QVkj83ZLVDgYvr98x8 G4+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=OSlR5GvDt2806hNeUTYx8/WT+aSfsQ3aAdO0kIWpAbI=; fh=xMWQBa9t4QlsEzeUSzaGJQ1eGAE72+kMO0WkvPTA/mM=; b=Xl5ArmlEFOBBAd+LexZdkQpmA18BAEPDg20jvX5z4y6XZdHkGBH8Tq0Q5gcjj0clBj +MCxeiOaGRcQIRKtj4fZuioSybQ90VEw+nBqEcVGmZtyXR7cJdJMPHJp49n319b4d/k6 J5NJG2C4gbYMDYOUWg5M7q1dwSDTknzNa7ueELb/NbVgKHIiEYYTBHW24/UNhf10yEF8 88KvYkjwIspyHW+5pLW03VZuNzupOLqlYs7Fmosi4wBA0mFq6uIQuGijkRLAWHe1aBlR qBRet4zUc+qHlpJdbPpSzzQBX0WURj6SWpgpgzIsnGWKg87M6KI2ENbvnGuU73aLNQH2 CLuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=oktPMqE9; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-105149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bk6-20020a05620a1a0600b00789c82ec6fasi5828623qkb.328.2024.03.16.03.16.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 03:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=oktPMqE9; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-105149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2280F1C20DE7 for ; Sat, 16 Mar 2024 10:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6A0917997; Sat, 16 Mar 2024 10:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="oktPMqE9" Received: from smtp.smtpout.orange.fr (smtp-17.smtpout.orange.fr [80.12.242.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 625C7D27D for ; Sat, 16 Mar 2024 10:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710584185; cv=none; b=sbQ7Ovq0lXTgNLQZYmnaTuBUaL1xCUzu2IoMq5rTsiSjZFft/DcNxf/N8bD+SmLz35nHCIOUopl1MU1QSQvNEjcfvGZsxlpMTxt5jdAGa9Tk2iangDPnoZTsqyhRQVS0m8hytKPhO1+QvnGW23nEBE36UNIpNeMIdn8+EizPn30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710584185; c=relaxed/simple; bh=U28zfjF4OS2fGHai986hSwR2HqlyXw1brLjxlL3M6aE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b48e0FJXALESduDmVNM30GCwBY8A6RSY+3nmwwoX5MtT/l26LEMLnG1kDC2ivo/mKQkhymZhyib5Dg1FFMoSgLoTwzA4nsUmH96YTcQwcXo6A8mSMsfYcyLBrzfsLeHOITeT5FHvQa8UFR6870njMZRVs2iOj1Q+96xo5ImLE6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=oktPMqE9; arc=none smtp.client-ip=80.12.242.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from fedora.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id lR5Irs5a0OyIKlR5Jr2quP; Sat, 16 Mar 2024 11:16:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1710584174; bh=OSlR5GvDt2806hNeUTYx8/WT+aSfsQ3aAdO0kIWpAbI=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=oktPMqE9K76+qTe1SGAycahtUVr0fDUnE20/jtLH0fnfbqvFqpIGtRqVuLnR0CYoj c1xfGyUUbacK6ljMlo8X25MQpLSXBr+2MZVVK2DAvT8IgAJ6MSFH8Gc1hYQH0sbShW CRv9uOdqlrGI+0/hePANK4PIdVjHvGRq1WL7NIsyd94RzPZmt3utmYd+Vvdw4lYZ+p OR1TKdnW4UhODYadew31r5kWXmSuEMdvFVDbdyrseHsyob8WOaALvOgf8mGqop4GKJ +OmmZ/CuRH8eTXWnE6ZqKQ9iakDpuk57RfLzUwrpPLHVRHMKeJpHf7rP/NCX874O8J wf/njDAC6zkzA== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 16 Mar 2024 11:16:14 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , netdev@vger.kernel.org Subject: [PATCH] caif: Use UTILITY_NAME_LENGTH instead of hard-coding 16 Date: Sat, 16 Mar 2024 11:16:10 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit UTILITY_NAME_LENGTH is 16. So better use the former when defining the 'utility_name' array. This makes the intent clearer when it is used around line 260. Signed-off-by: Christophe JAILLET --- net/caif/cfctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c index 8480684f2762..b6d9462f92b9 100644 --- a/net/caif/cfctrl.c +++ b/net/caif/cfctrl.c @@ -206,7 +206,7 @@ int cfctrl_linkup_request(struct cflayer *layer, u8 tmp8; struct cfctrl_request_info *req; int ret; - char utility_name[16]; + char utility_name[UTILITY_NAME_LENGTH]; struct cfpkt *pkt; struct cflayer *dn = cfctrl->serv.layer.dn; -- 2.44.0