Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp866521ybi; Sat, 15 Jun 2019 13:39:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqztBykdSn3U2Y5WK9+/KW7R+froOF02btQ9gaimHgQrmcceDrZutBHhT7WRrOTaAzNsEp8R X-Received: by 2002:a17:90a:1706:: with SMTP id z6mr17272871pjd.108.1560631154231; Sat, 15 Jun 2019 13:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560631154; cv=none; d=google.com; s=arc-20160816; b=hjRp/6KAuh+5Io4oIM3DEQR2S6fqbUuF9JHGI48hMOqMvgVVFKijzCsmIniSbtRzXD 1FruWGOd2AE74iZsilezsEkLG2eXOLuiUXEclH3GadkEoF/58AOJLzbpi8L8PH17dE3E rLaa2e770RWrsBt//n/Ga1cMJbNhvFYrheD7418HHxogCxzHlTqn7nmvrztNQjMS9YGg AfQca5rW9yotmmL///BSD+/TDVBhjgc4WVA0K+91GBeDZjjVV/FyW5CS3L0K86OvRwjV J88/gjBbNlOgiYQPT89OF8UfQMIyYR4vsh1af9xgtEcbRdfX3Ds1xi5XCAvmkhej67ql y8BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=J282WdQlZGbpI7ft0Q9yVWIhEimfBplwi2RaZAbzfMQ=; b=AftJglXLK4GUsdAMtFOiQDiOzzrLej/D16epMSNH9dr1VMdW2NFWe0A8ku6d5kJpJR pUsDfYMZb0i1kzCtb8FV6JKJ0/YP0rJy/Tk6U+ltX+aK0NfxM5ZADJanIJ+U8d6mHyDR ky8W2JWW6Ky3WZxsdhg379dzVoifX07gHn0nEX9hGpKD7KzfXqMi+a1S02G/rGiuTkLk hWG4yPyRBNTIxlzZvIN4b7t2HD4JhS09bnpMtGZH1CLpHtk4w5TK4g9NkAzJ0AbPNuem oHDZh1WMgOfTWXWw31pzIuLKwvYcuVCgoiQ5O0QEblhzsp6a/beWq0kyRfnzFQic1rFw QFfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si5703495plo.360.2019.06.15.13.38.59; Sat, 15 Jun 2019 13:39:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbfFOUix (ORCPT + 99 others); Sat, 15 Jun 2019 16:38:53 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39418 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726490AbfFOUiw (ORCPT ); Sat, 15 Jun 2019 16:38:52 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 1587B14EB9021; Sat, 15 Jun 2019 13:38:52 -0700 (PDT) Date: Sat, 15 Jun 2019 13:38:51 -0700 (PDT) Message-Id: <20190615.133851.553488737561865526.davem@davemloft.net> To: christophe.jaillet@wanadoo.fr Cc: aviad.krawczyk@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net-next] hinic: Use devm_kasprintf instead of hard coding it From: David Miller In-Reply-To: <20190613195412.1702-1-christophe.jaillet@wanadoo.fr> References: <20190613195412.1702-1-christophe.jaillet@wanadoo.fr> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 15 Jun 2019 13:38:52 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET Date: Thu, 13 Jun 2019 21:54:12 +0200 > 'devm_kasprintf' is less verbose than: > snprintf(NULL, 0, ...); > devm_kzalloc(...); > sprintf > so use it instead. > > Signed-off-by: Christophe JAILLET Applied.