Skip to contentSkip to conversation

fbdev: mx3fb: remove unused variable 'irq'

PATCH Applied Xiaofei Tan 2 participants 2 messages Sep 17, 2020 – Sep 24, 2020 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: mx3fb: remove unused variable 'irq'

Remove the variable 'irq' that is set but never used.

---
 drivers/video/fbdev/mx3fb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/video/fbdev/mx3fb.c +0 -2
index 603731a..894617d 100644
@@ -1428,7 +1428,6 @@ static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan)
 	struct device *dev = mx3fb->dev;
 	struct mx3fb_platform_data *mx3fb_pdata = dev_get_platdata(dev);
 	const char *name = mx3fb_pdata->name;
-	unsigned int irq;
 	struct fb_info *fbi;
 	struct mx3fb_info *mx3fbi;
 	const struct fb_videomode *mode;
@@ -1441,7 +1440,6 @@ static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan)
 	}
 
 	ichan->client = mx3fb;
-	irq = ichan->eof_irq;
 
 	if (ichan->dma_chan.chan_id != IDMAC_SDC_0)
 		return -EINVAL;
Signature · 1 line
2.8.1
Applied
#1 lore raw
Quoted 3 lines · Xiaofei Tan

Remove the variable 'irq' that is set but never used.

Thanks, applied to drm-misc-next.

Sam

Quoted 26 lines
---
 drivers/video/fbdev/mx3fb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/video/fbdev/mx3fb.c +0 -2
index 603731a..894617d 100644
@@ -1428,7 +1428,6 @@ static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan)
 	struct device *dev = mx3fb->dev;
 	struct mx3fb_platform_data *mx3fb_pdata = dev_get_platdata(dev);
 	const char *name = mx3fb_pdata->name;
-	unsigned int irq;
 	struct fb_info *fbi;
 	struct mx3fb_info *mx3fbi;
 	const struct fb_videomode *mode;
@@ -1441,7 +1440,6 @@ static int init_fb_chan(struct mx3fb_data *mx3fb, struct idmac_channel *ichan)
 	}
 
 	ichan->client = mx3fb;
-	irq = ichan->eof_irq;
 
 	if (ichan->dma_chan.chan_id != IDMAC_SDC_0)
 		return -EINVAL;
Signature · 1 line
2.8.1