Two helpers, parse_on_off() and print_on_off(), have been recently added to lib/utils.c. Convert a number of instances of the same effective behavior to calls to these helpers.
Petr Machata (7): bridge: link: Port over to parse_on_off() bridge: link: Convert to use print_on_off() ip: iplink: Convert to use parse_on_off() ip: iplink_bridge_slave: Port over to parse_on_off() ip: iplink_bridge_slave: Convert to use print_on_off() ip: ipnetconf: Convert to use print_on_off() ip: iptuntap: Convert to use print_on_off() bridge/link.c | 135 ++++++++++++++++++--------------------- ip/iplink.c | 47 +++++--------- ip/iplink_bridge_slave.c | 46 +++++-------- ip/ipnetconf.c | 28 ++++---- ip/iptuntap.c | 18 ++---- 5 files changed, 112 insertions(+), 162 deletions(-) -- 2.25.1