Skip to content

Commit

Permalink
staging: xgifb: delete redundant casts from mtrr_add() call
Browse files Browse the repository at this point in the history
Delete redundant casts from mtrr_add() call.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 15ebe6c commit 7c1387e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2414,10 +2414,8 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
fb_alloc_cmap(&fb_info->cmap, 256 , 0);

#ifdef CONFIG_MTRR
xgi_video_info.mtrr = mtrr_add(
(unsigned int) xgi_video_info.video_base,
(unsigned int) xgi_video_info.video_size,
MTRR_TYPE_WRCOMB, 1);
xgi_video_info.mtrr = mtrr_add(xgi_video_info.video_base,
xgi_video_info.video_size, MTRR_TYPE_WRCOMB, 1);
if (xgi_video_info.mtrr >= 0)
dev_info(&pdev->dev, "added MTRR\n");
#endif
Expand Down

0 comments on commit 7c1387e

Please sign in to comment.