pkt_sched: pedit use proper struct
[safe/jmp/linux-2.6] / net / mac80211 / rc80211_minstrel_debugfs.c
index 98f4807..a715d94 100644 (file)
@@ -83,7 +83,7 @@ minstrel_stats_open(struct inode *inode, struct file *file)
                p += sprintf(p, "%3u%s", mr->bitrate / 2,
                                (mr->bitrate & 1 ? ".5" : "  "));
 
-               tp = ((mr->cur_tp * 96) / 18000) >> 10;
+               tp = mr->cur_tp / ((18000 << 10) / 96);
                prob = mr->cur_prob / 18;
                eprob = mr->probability / 18;
 
@@ -139,7 +139,7 @@ minstrel_stats_release(struct inode *inode, struct file *file)
        return 0;
 }
 
-static struct file_operations minstrel_stat_fops = {
+static const struct file_operations minstrel_stat_fops = {
        .owner = THIS_MODULE,
        .open = minstrel_stats_open,
        .read = minstrel_stats_read,