net-bonding: Fix minor/cosmetic type inconsistencies
[deliverable/linux.git] / drivers / net / bonding / bond_3ad.c
index 494bf960442d3ff533507661ce394d0d128a3d6f..123dd602261f2da9c0825503730b7b2129c988db 100644 (file)
@@ -716,11 +716,9 @@ static void __set_agg_ports_ready(struct aggregator *aggregator, int val)
 static u32 __get_agg_bandwidth(struct aggregator *aggregator)
 {
        u32 bandwidth = 0;
-       u32 basic_speed;
 
        if (aggregator->num_of_ports) {
-               basic_speed = __get_link_speed(aggregator->lag_ports);
-               switch (basic_speed) {
+               switch (__get_link_speed(aggregator->lag_ports)) {
                case AD_LINK_SPEED_BITMASK_1MBPS:
                        bandwidth = aggregator->num_of_ports;
                        break;
This page took 0.027918 seconds and 5 git commands to generate.