]> Git Repo - linux.git/commit
s390/qeth: streamline SNMP cmd code
authorJulian Wiedmann <[email protected]>
Thu, 27 Jun 2019 15:01:29 +0000 (17:01 +0200)
committerDavid S. Miller <[email protected]>
Thu, 27 Jun 2019 17:18:23 +0000 (10:18 -0700)
commitd4c08afafa0469a24771b14528ee179f72861ea3
tree8437a612d0840fed50a9305b688a9d1814c264f3
parentc3b2218d3170178b2e5539bca3623f9519386d04
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/s390/net/qeth_core_main.c
This page took 0.052557 seconds and 4 git commands to generate.