rt2x00: Remove superfluous assignment of mpdu_density
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 27 Dec 2010 14:06:36 +0000 (15:06 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:35:14 +0000 (14:35 -0500)
The tx desciptor already gets initialized to 0. Hence, there's no need
to explicitly assign 0 to mpdu_density here.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00ht.c

index c637bcaec5f8d6ef37320950f5bf9964f4bde675..b7ad46ecaa1dd0119d21246951cd57c6f7a3889c 100644 (file)
@@ -40,8 +40,6 @@ void rt2x00ht_create_tx_descriptor(struct queue_entry *entry,
        if (tx_info->control.sta)
                txdesc->mpdu_density =
                    tx_info->control.sta->ht_cap.ampdu_density;
-       else
-               txdesc->mpdu_density = 0;
 
        txdesc->ba_size = 7;    /* FIXME: What value is needed? */