Commit e21247cc authored by Ming Lei's avatar Ming Lei Committed by John W. Linville

ath9k: decrease size of ath9k.ko

From e74b075cdb143d45be9b371ee8a8e2dcfc15ab34 Mon Sep 17 00:00:00 2001
From: Ming Lei <tom.leiming@gmail.com>
Date: Sat, 27 Feb 2010 23:50:54 +0800
Subject: [PATCH] ath9k: decrease size of ath9k.ko

The patch defines the fields of 'valid_single_stream' and 'valid' in
struct ath_rate_table as char type, so decrease the size of ath9k.ko
about 2KB.

old ath9k.ko
[tom@tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  69344    3080     168   72592   11b90 ath9k.ko

new ath9k.ko
[tom@tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  67304    3080     168   70552   11398 ath9k.ko
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d82689e2
...@@ -110,8 +110,8 @@ struct ath_rate_table { ...@@ -110,8 +110,8 @@ struct ath_rate_table {
int rate_cnt; int rate_cnt;
int mcs_start; int mcs_start;
struct { struct {
int valid; u8 valid;
int valid_single_stream; u8 valid_single_stream;
u8 phy; u8 phy;
u32 ratekbps; u32 ratekbps;
u32 user_ratekbps; u32 user_ratekbps;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment