diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c index 9a345209535b1369a3f1dd7033491af991fb2f35..4ca5d0c8fe84a6501ca6ef4f31898c0babac2725 100644 --- a/drivers/video/s3fb.c +++ b/drivers/video/s3fb.c @@ -1369,12 +1369,11 @@ static int __devinit s3_pci_probe(struct pci_dev *dev, const struct pci_device_i static void __devexit s3_pci_remove(struct pci_dev *dev) { struct fb_info *info = pci_get_drvdata(dev); + struct s3fb_info __maybe_unused *par = info->par; if (info) { #ifdef CONFIG_MTRR - struct s3fb_info *par = info->par; - if (par->mtrr_reg >= 0) { mtrr_del(par->mtrr_reg, 0, 0); par->mtrr_reg = -1;