|
@@ -423,7 +423,7 @@ static ssize_t bonding_store_mode(struct device *d,
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
- new_value = bond_parse_parm((char *)buf, bond_mode_tbl);
|
|
|
+ new_value = bond_parse_parm(buf, bond_mode_tbl);
|
|
|
if (new_value < 0) {
|
|
|
printk(KERN_ERR DRV_NAME
|
|
|
": %s: Ignoring invalid mode value %.*s.\n",
|
|
@@ -478,7 +478,7 @@ static ssize_t bonding_store_xmit_hash(struct device *d,
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
- new_value = bond_parse_parm((char *)buf, xmit_hashtype_tbl);
|
|
|
+ new_value = bond_parse_parm(buf, xmit_hashtype_tbl);
|
|
|
if (new_value < 0) {
|
|
|
printk(KERN_ERR DRV_NAME
|
|
|
": %s: Ignoring invalid xmit hash policy value %.*s.\n",
|
|
@@ -518,7 +518,7 @@ static ssize_t bonding_store_arp_validate(struct device *d,
|
|
|
int new_value;
|
|
|
struct bonding *bond = to_bond(d);
|
|
|
|
|
|
- new_value = bond_parse_parm((char *)buf, arp_validate_tbl);
|
|
|
+ new_value = bond_parse_parm(buf, arp_validate_tbl);
|
|
|
if (new_value < 0) {
|
|
|
printk(KERN_ERR DRV_NAME
|
|
|
": %s: Ignoring invalid arp_validate value %s\n",
|
|
@@ -941,7 +941,7 @@ static ssize_t bonding_store_lacp(struct device *d,
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
- new_value = bond_parse_parm((char *)buf, bond_lacp_tbl);
|
|
|
+ new_value = bond_parse_parm(buf, bond_lacp_tbl);
|
|
|
|
|
|
if ((new_value == 1) || (new_value == 0)) {
|
|
|
bond->params.lacp_fast = new_value;
|