Re: useless rtm_type in rtm_output

2019-08-28 Thread Klemens Nanni
On Wed, Aug 28, 2019 at 06:58:28PM +0200, Alexander Bluhm wrote: > in rev 1.273 RTM_LOCK has been removed from net/rtsock.c. Since > then the big switch in rtm_output() has RTM_CHANGE as a single case. > It does not make sense to check rtm_type again. OK kn I also double checked that no

useless rtm_type in rtm_output

2019-08-28 Thread Alexander Bluhm
Hi, in rev 1.273 RTM_LOCK has been removed from net/rtsock.c. Since then the big switch in rtm_output() has RTM_CHANGE as a single case. It does not make sense to check rtm_type again. For easier review I provide the diff -w output. Otherwise you would mostly see the indent change. ok? bluhm