From: Ben Hutchings Date: Wed, 30 Jun 2010 02:46:56 +0000 (+0000) Subject: netdev: Make ethtool_ops::set_flags() return -EINVAL for unsupported flags X-Git-Tag: v2.6.36-rc1~571^2~391 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d1935a61b7fe7a65f98f154c7f3301cfe746f3;p=pandora-kernel.git netdev: Make ethtool_ops::set_flags() return -EINVAL for unsupported flags The documented error code for attempts to set unsupported flags (or to clear flags that cannot be disabled) is EINVAL, not EOPNOTSUPP. Signed-off-by: Ben Hutchings Acked-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed