Skip to content

Commit

Permalink
staging: xgifb: XGIfb_setup(): clean up driver messages
Browse files Browse the repository at this point in the history
Print options only if they are given. Delete other messages.

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 6, 2011
1 parent 87c8b8b commit 79bea04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1939,11 +1939,11 @@ static int __init XGIfb_setup(char *options)

xgi_video_info.refresh_rate = 0;

printk(KERN_INFO "XGIfb: Options %s\n", options);

if (!options || !*options)
return 0;

pr_info("xgifb: options: %s\n", options);

while ((this_opt = strsep(&options, ",")) != NULL) {

if (!*this_opt)
Expand Down Expand Up @@ -1984,11 +1984,8 @@ static int __init XGIfb_setup(char *options)
this_opt + 7, NULL, 0);
} else {
XGIfb_search_mode(this_opt);
/* printk(KERN_INFO "XGIfb: Invalid option %s\n",
this_opt); */
}
}
printk("\nxgifb: outa xgifb_setup 3450");
return 0;
}

Expand Down

0 comments on commit 79bea04

Please sign in to comment.