mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	gpio: fix meaningless return expression
Fix the following sparse error: drivers/gpio/gpio-ath79.c:54:16: error: return expression in void function Signed-off-by: zhong jiang <zhongjiang@huawei.com> Acked-by: Alban Bedel <albeu@free.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
		
							parent
							
								
									2bee9e067c
								
							
						
					
					
						commit
						23211b08c3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -51,7 +51,7 @@ static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg) | |||
| static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl, | ||||
| 			unsigned reg, u32 val) | ||||
| { | ||||
| 	return writel(val, ctrl->base + reg); | ||||
| 	writel(val, ctrl->base + reg); | ||||
| } | ||||
| 
 | ||||
| static bool ath79_gpio_update_bits( | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 zhong jiang
						zhong jiang