File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed 
drivers/media/platform/s5p-mfc Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -1043,12 +1043,9 @@ static unsigned int s5p_mfc_poll(struct file *file,
10431043static  int  s5p_mfc_mmap (struct  file  * file , struct  vm_area_struct  * vma )
10441044{
10451045	struct  s5p_mfc_ctx  * ctx  =  fh_to_ctx (file -> private_data );
1046- 	struct  s5p_mfc_dev  * dev  =  ctx -> dev ;
10471046	unsigned long  offset  =  vma -> vm_pgoff  << PAGE_SHIFT ;
10481047	int  ret ;
10491048
1050- 	if  (mutex_lock_interruptible (& dev -> mfc_mutex ))
1051- 		return  - ERESTARTSYS ;
10521049	if  (offset  <  DST_QUEUE_OFF_BASE ) {
10531050		mfc_debug (2 , "mmaping source\n" );
10541051		ret  =  vb2_mmap (& ctx -> vq_src , vma );
@@ -1057,7 +1054,6 @@ static int s5p_mfc_mmap(struct file *file, struct vm_area_struct *vma)
10571054		vma -> vm_pgoff  -=  (DST_QUEUE_OFF_BASE  >> PAGE_SHIFT );
10581055		ret  =  vb2_mmap (& ctx -> vq_dst , vma );
10591056	}
1060- 	mutex_unlock (& dev -> mfc_mutex );
10611057	return  ret ;
10621058}
10631059
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments