swconfig: simplify init code
authorJonas Gorski <jogo@openwrt.org>
Sun, 24 Jan 2016 12:36:06 +0000 (12:36 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 24 Jan 2016 12:36:06 +0000 (12:36 +0000)
commita9b4952be143b67c929066fc67fc50d8fe5f64b5
treeb739c34a44b85daae56cab13e940f457e6b370ba
parent38719ecca4cb1c120e8122495a676fe7c0bd66ce
swconfig: simplify init code

Directly return the return value of genl_register_family_with_ops()
instead of storing it in a temporary variable, then returning it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 48472
target/linux/generic/files/drivers/net/phy/swconfig.c