Re: [PATCH] video: fbdev: uvesafb: Remove impossible code path in uvesafb_init_info

2014-03-06 Thread Tomi Valkeinen
On 05/03/14 17:56, Wang YanQing wrote: > Because uvesafb_vbe_init will fail when get zero avaiable modes, > and we have checked the return value of uvesafb_vbe_init_mode, > so it is impossible to pass NULL as mode into uvesafb_init_info. > > [ This patch fix warning report by fengguang...@intel.co

[PATCH] video: fbdev: uvesafb: Remove impossible code path in uvesafb_init_info

2014-03-05 Thread Wang YanQing
Because uvesafb_vbe_init will fail when get zero avaiable modes, and we have checked the return value of uvesafb_vbe_init_mode, so it is impossible to pass NULL as mode into uvesafb_init_info. [ This patch fix warning report by fengguang...@intel.com "drivers/video/fbdev/uvesafb.c:1509 uvesafb_i