Commit 7c1387e0 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: delete redundant casts from mtrr_add() call

Delete redundant casts from mtrr_add() call.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 15ebe6c6
...@@ -2414,10 +2414,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev, ...@@ -2414,10 +2414,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
fb_alloc_cmap(&fb_info->cmap, 256 , 0); fb_alloc_cmap(&fb_info->cmap, 256 , 0);
#ifdef CONFIG_MTRR #ifdef CONFIG_MTRR
xgi_video_info.mtrr = mtrr_add( xgi_video_info.mtrr = mtrr_add(xgi_video_info.video_base,
(unsigned int) xgi_video_info.video_base, xgi_video_info.video_size, MTRR_TYPE_WRCOMB, 1);
(unsigned int) xgi_video_info.video_size,
MTRR_TYPE_WRCOMB, 1);
if (xgi_video_info.mtrr >= 0) if (xgi_video_info.mtrr >= 0)
dev_info(&pdev->dev, "added MTRR\n"); dev_info(&pdev->dev, "added MTRR\n");
#endif #endif
......
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