bugfix.. r isn't an error in 'return r'
This commit is contained in:
		
							parent
							
								
									7dc4989d96
								
							
						
					
					
						commit
						b4209a856d
					
				| @ -224,7 +224,7 @@ register struct super_block *sp; /* pointer to a superblock */ | |||||||
|   	sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0); |   	sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0); | ||||||
|   if(r != MIN_BLOCK_SIZE) { |   if(r != MIN_BLOCK_SIZE) { | ||||||
|   	printf("dev_io failed for super block (%d)\n", r); |   	printf("dev_io failed for super block (%d)\n", r); | ||||||
|   	return r; |   	return EINVAL; | ||||||
|   } |   } | ||||||
|   memcpy(sp, sbbuf, sizeof(*sp)); |   memcpy(sp, sbbuf, sizeof(*sp)); | ||||||
|   sp->s_dev = NO_DEV;		/* restore later */ |   sp->s_dev = NO_DEV;		/* restore later */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ben Gras
						Ben Gras