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

Commit 679c489f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Paul Mundt
Browse files

sisfb: eliminate unused variable compiler warning



Eliminate the following compiler warning on non-x86 platforms by limiting
the variable scope:

drivers/video/sis/sis_main.c:4108: warning: unused variable 'temp'

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 7ccbefe0
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -4105,7 +4105,6 @@ sisfb_find_rom(struct pci_dev *pdev)
	struct sis_video_info *ivideo = pci_get_drvdata(pdev);
	void __iomem *rom_base;
	unsigned char *myrombase = NULL;
	u32 temp;
	size_t romsize;

	/* First, try the official pci ROM functions (except
@@ -4132,6 +4131,8 @@ sisfb_find_rom(struct pci_dev *pdev)
	/* Otherwise do it the conventional way. */

#if defined(__i386__) || defined(__x86_64__)
	{
		u32 temp;

		for (temp = 0x000c0000; temp < 0x000f0000; temp += 0x00001000) {

@@ -4152,6 +4153,7 @@ sisfb_find_rom(struct pci_dev *pdev)

		}

	}
#endif

	return myrombase;