]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/edac/i5100_edac.c
edac, mc: Improve scrub rate handling
[net-next-2.6.git] / drivers / edac / i5100_edac.c
index ee9753cf362ce04901b9924fa82d43a58c3a8224..f459a6c0886b5d6545b78c61f77b70a0ce32bc4c 100644 (file)
@@ -589,14 +589,13 @@ static void i5100_refresh_scrubbing(struct work_struct *work)
 /*
  * The bandwidth is based on experimentation, feel free to refine it.
  */
-static int i5100_set_scrub_rate(struct mem_ctl_info *mci,
-                                      u32 *bandwidth)
+static int i5100_set_scrub_rate(struct mem_ctl_info *mci, u32 bandwidth)
 {
        struct i5100_priv *priv = mci->pvt_info;
        u32 dw;
 
        pci_read_config_dword(priv->mc, I5100_MC, &dw);
-       if (*bandwidth) {
+       if (bandwidth) {
                priv->scrub_enable = 1;
                dw |= I5100_MC_SCRBEN_MASK;
                schedule_delayed_work(&(priv->i5100_scrubbing),
@@ -610,7 +609,7 @@ static int i5100_set_scrub_rate(struct mem_ctl_info *mci,
 
        pci_read_config_dword(priv->mc, I5100_MC, &dw);
 
-       *bandwidth = 5900000 * i5100_mc_scrben(dw);
+       bandwidth = 5900000 * i5100_mc_scrben(dw);
 
        return 0;
 }