mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09:00
staging: sm750fb: fix mixed declarations
we were getting build warning about mixed declaration. the variable is now declared at the beginning of the block. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
54a1a05fe2
commit
06a1bf8136
@@ -1175,6 +1175,7 @@ ALLOC_FB:
|
||||
else
|
||||
{
|
||||
struct lynxfb_par * par;
|
||||
int errno;
|
||||
pr_info("framebuffer #%d alloc okay\n",fbidx);
|
||||
share->fbinfo[fbidx] = info[fbidx];
|
||||
par = info[fbidx]->par;
|
||||
@@ -1191,7 +1192,7 @@ ALLOC_FB:
|
||||
|
||||
/* register frame buffer*/
|
||||
pr_info("Ready to register framebuffer #%d.\n",fbidx);
|
||||
int errno = register_framebuffer(info[fbidx]);
|
||||
errno = register_framebuffer(info[fbidx]);
|
||||
if (errno < 0) {
|
||||
pr_err("Failed to register fb_info #%d. err %d\n",fbidx, errno);
|
||||
if(fbidx == 0)
|
||||
|
||||
Reference in New Issue
Block a user