diff options
author | Alexander Duyck <alexanderduyck@fb.com> | 2021-03-16 17:31:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-17 11:42:31 -0700 |
commit | 3b78b3067f386e5943a30112f866cd65b3de2d8b (patch) | |
tree | 8b4183c438ebf41b1f576fbc424596c222f2cbc2 /drivers/net/ethernet/qualcomm | |
parent | d7a9a01b4e21b9c49559c7e66e6c0dbc7417b7fe (diff) |
vmxnet3: Update driver to use ethtool_sprintf
So this patch actually does 3 things.
First it removes a stray white space at the start of the variable
declaration in vmxnet3_get_strings.
Second it flips the logic for the string test so that we exit immediately
if we are not looking for the stats strings. Doing this we can avoid
unnecessary indentation and line wrapping.
Then finally it updates the code to use ethtool_sprintf rather than a
memcpy and pointer increment to write the ethtool strings.
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
0 files changed, 0 insertions, 0 deletions