]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: Use devm_kasprintf instead of hard coding it
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 13 Jun 2019 19:54:12 +0000 (21:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 20:38:24 +0000 (13:38 -0700)
commit23e083058e1a6a0c3110cc3ff6b3a6835a667a9b
tree3f92fcb4644834f1915de9f617fff21f25d56fdb
parenta0e4c5ffa6441746e5865c3eb274c7b878fec1d6
hinic: Use devm_kasprintf instead of hard coding it

'devm_kasprintf' is less verbose than:
   snprintf(NULL, 0, ...);
   devm_kzalloc(...);
   sprintf
so use it instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Zhao Chen <zhaochen6@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_rx.c