Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)