Commit 06a1bf81 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 54a1a05f
......@@ -1175,6 +1175,7 @@ static int lynxfb_pci_probe(struct pci_dev * pdev,
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 @@ static int lynxfb_pci_probe(struct pci_dev * pdev,
/* 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment