diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-06-27 17:01:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-27 10:18:23 -0700 |
commit | d4c08afafa0469a24771b14528ee179f72861ea3 (patch) | |
tree | 8437a612d0840fed50a9305b688a9d1814c264f3 /drivers/net/ethernet/intel/i40e/i40e_common.c | |
parent | c3b2218d3170178b2e5539bca3623f9519386d04 (diff) |
s390/qeth: streamline SNMP cmd code
Apply some cleanups to qeth_snmp_command() and its callback:
1. when accessing the user data, use the proper struct instead of
hard-coded offsets. Also copy the request data straight into the
allocated cmd, skipping the extra memdup_user() to a tmp buffer.
2. capping the request length is no longer needed, the same check gets
applied at a base level in qeth_alloc_cmd().
3. clean up some duplicated (and misindented) trace statements.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_common.c')
0 files changed, 0 insertions, 0 deletions