mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	gfs2: remove dead code in add_to_queue
clang static analyzer complains that value stored to 'gh' is never read.
The code of this line is useless after commit 0b93bac227
("gfs2: Remove LM_FLAG_PRIORITY flag"). Remove this code to save space.
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									bdcb8aa434
								
							
						
					
					
						commit
						bb25b97562
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -1524,7 +1524,6 @@ fail: | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 	list_add_tail(&gh->gh_list, insert_pt); | 	list_add_tail(&gh->gh_list, insert_pt); | ||||||
| 	gh = list_first_entry(&gl->gl_holders, struct gfs2_holder, gh_list); |  | ||||||
| 	spin_unlock(&gl->gl_lockref.lock); | 	spin_unlock(&gl->gl_lockref.lock); | ||||||
| 	if (sdp->sd_lockstruct.ls_ops->lm_cancel) | 	if (sdp->sd_lockstruct.ls_ops->lm_cancel) | ||||||
| 		sdp->sd_lockstruct.ls_ops->lm_cancel(gl); | 		sdp->sd_lockstruct.ls_ops->lm_cancel(gl); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Su Hui
						Su Hui