net: hinic: Use devm_kasprintf()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 11 Sep 2023 19:50:52 +0000 (21:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2023 11:21:09 +0000 (12:21 +0100)
commit9cc91173cf1b050562244b98af154cef8b9b1096
treed6a7df68ff8fb80079f49d03a6835de7488bc822
parent7e6cadf51a55e3834db4516b1027894b257a1d39
net: hinic: Use devm_kasprintf()

Use devm_kasprintf() instead of hand writing it.
This is less verbose and less error prone.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_tx.c