ax25: merge repeat codes in ax25_dev_device_down()
authorLu Wei <luwei32@huawei.com>
Mon, 16 May 2022 06:28:04 +0000 (14:28 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 May 2022 10:24:16 +0000 (12:24 +0200)
commita968c799eb1da3e27fc107cfdc228bf87ff27e22
treedebe11b4f5f335e03f4f9667e8218b38e3c241ef
parentbcdcf2c466d30d69be822420bdb3f880651b2e55
ax25: merge repeat codes in ax25_dev_device_down()

Merge repeat codes to reduce the duplication.

Signed-off-by: Lu Wei <luwei32@huawei.com>
Link: https://lore.kernel.org/r/20220516062804.254742-1-luwei32@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ax25/ax25_dev.c