ixgbe: eliminate Smatch warnings in ixgbe_debugfs.c
authorjoshua.a.hay@intel.com <joshua.a.hay@intel.com>
Wed, 28 Nov 2012 05:49:20 +0000 (05:49 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 1 Dec 2012 10:29:19 +0000 (02:29 -0800)
commit3288d735781f8873775e5d2e5d33507119f79cca
tree39ace5c2974a14195aec3d55caa9619a68071aee
parent1b4c44e6369dbbafd113f1e00b406f1eda5ab5b2
ixgbe: eliminate Smatch warnings in ixgbe_debugfs.c

This patch replaces calls to copy_to_user, copy_from_user, and the associated
logic, with calls to simple_read_from_buffer and simple_write_to_buffer
respectively.  This was done to eliminate warnings generated by the Smatch
static analysis tool.

v2- Fix return values based community feedback

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Josh Hay <joshua.a.hay@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c