]> err.no Git - linux-2.6/commit
bonding: Return nothing for not applicable values
authorWagner Ferenc <wferi@niif.hu>
Fri, 7 Dec 2007 07:40:29 +0000 (23:40 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 7 Dec 2007 20:00:25 +0000 (15:00 -0500)
commit16cd0160d5e7e22c2818b30bf1a1d4c262a8df8a
tree9b308a86ac51c52edcdaa3967a3a89d28d048b07
parent7bd4650895137760f6c686d06ca2bc174e3c861c
bonding: Return nothing for not applicable values

From: Wagner Ferenc <wferi@niif.hu>

The previous code returned '\n' (that is, a single empty line)
from most files, with one exception (xmit_hash_policy), where
it returned 'NA\n'.  This patch consolidates each file to return
nothing at all if not applicable, not even a '\n'.

I find this behaviour more usual, more useful, more efficient
and shorter to code from both sides.

Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/bonding/bond_sysfs.c