diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-10-16 04:29:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:21 -0400 |
commit | 0138bd841ea2d713cf883c67684c40ce26ba319a (patch) | |
tree | 0c6c2af73b461317dd1f989a1c55609555249312 /drivers/video | |
parent | 535da7ffe68dfdf70c7aecade21864a573035b75 (diff) |
ps3fb: do not print warnings on invalid frame numbers
Do not print warnings on invalid frame numbers, as this can be triggered from
user space.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/ps3fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/ps3fb.c b/drivers/video/ps3fb.c index eb8afc7ace03..49069dba1b5d 100644 --- a/drivers/video/ps3fb.c +++ b/drivers/video/ps3fb.c | |||
@@ -389,8 +389,8 @@ static int ps3fb_sync(struct fb_info *info, u32 frame) | |||
389 | yres = ps3fb_res[i].yres; | 389 | yres = ps3fb_res[i].yres; |
390 | 390 | ||
391 | if (frame > ps3fb.num_frames - 1) { | 391 | if (frame > ps3fb.num_frames - 1) { |
392 | dev_warn(info->device, "%s: invalid frame number (%u)\n", | 392 | dev_dbg(info->device, "%s: invalid frame number (%u)\n", |
393 | __func__, frame); | 393 | __func__, frame); |
394 | return -EINVAL; | 394 | return -EINVAL; |
395 | } | 395 | } |
396 | offset = xres * yres * BPP * frame; | 396 | offset = xres * yres * BPP * frame; |