mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	coccinelle: device_attr_show: Remove useless expression STR
Commitff82e84e80("coccinelle: device_attr_show: simplify patch case") simplifies the patch case, as a result, STR is no longer needed. This also helps to fix below coccicheck warning: > warning: rp: metavariable STR not used in the - or context code CC: Julia Lawall <Julia.Lawall@inria.fr> CC: Nicolas Palix <nicolas.palix@imag.fr> CC: cocci@inria.fr Fixes:ff82e84e80("coccinelle: device_attr_show: simplify patch case") Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
This commit is contained in:
		
							parent
							
								
									6613476e22
								
							
						
					
					
						commit
						173f6cd384
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -28,7 +28,7 @@ ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) | |||
| 
 | ||||
| @rp depends on patch@ | ||||
| identifier show, dev, attr, buf; | ||||
| expression BUF, SZ, FORMAT, STR; | ||||
| expression BUF, SZ, FORMAT; | ||||
| @@ | ||||
| 
 | ||||
| ssize_t show(struct device *dev, struct device_attribute *attr, char *buf) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Li Zhijian
						Li Zhijian