genetlink: optimize ctrl_dumpfamily()
authorSamir Bellabes <sam@synack.fr>
Thu, 7 Jan 2010 22:10:56 +0000 (22:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jan 2010 04:37:45 +0000 (20:37 -0800)
commite1d5a010729a7a495a8a8de85727f3f0d62f06a0
treef1f5b01429ddf5ce7e023088f7ac705bed639db0
parent37fce430dd66a6251bde6ef0004a1da69b26c028
genetlink: optimize ctrl_dumpfamily()

there is a unnecessary test which can be replaced by a good initialization in
the 'for' statement

Noticed by Serge E. Hallyn <serue@us.ibm.com>

Signed-off-by: Samir Bellabes <sam@synack.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c