Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vme: removed useless breaks in vme_user.c

vme_user.c contained unnecessary breaks after gotos, which increased
code size and caused code style warning. This is now fixed.

Signed-off-by: Tom Jorquera <tom.jorquera@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tom Jorquera and committed by
Greg Kroah-Hartman
e20487e5 6b866095

-4
-4
drivers/staging/vme/devices/vme_user.c
··· 433 433 default: 434 434 mutex_unlock(&image[minor].mutex); 435 435 return -EINVAL; 436 - break; 437 436 } 438 437 439 438 if ((absolute < 0) || (absolute >= image_size)) { ··· 510 511 } 511 512 512 513 return retval; 513 - break; 514 514 515 515 case VME_SET_MASTER: 516 516 ··· 550 552 } 551 553 552 554 return retval; 553 - break; 554 555 555 556 case VME_SET_SLAVE: 556 557 ··· 803 806 default: 804 807 err = -EINVAL; 805 808 goto err_sysfs; 806 - break; 807 809 } 808 810 809 811 num = (type[i] == SLAVE_MINOR) ? i - (MASTER_MAX + 1) : i;