summaryrefslogtreecommitdiff
path: root/drivers/s390/net/qeth_l2_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2019-06-27 17:01:29 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-27 10:18:23 -0700
commitd4c08afafa0469a24771b14528ee179f72861ea3 (patch)
tree8437a612d0840fed50a9305b688a9d1814c264f3 /drivers/s390/net/qeth_l2_main.c
parentc3b2218d3170178b2e5539bca3623f9519386d04 (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/s390/net/qeth_l2_main.c')
0 files changed, 0 insertions, 0 deletions