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

usb:chipidea:Make the function hw_alloc_repmap have a return type of void

This makes the function hw_alloc_repmap be declared to have a return
type of void now due to this particular function never returning
a error code to its caller due to this function always running
successfully to completion nor it's caller putting the return
value into a variable in order to check if a error code is passed
from the function hw_alloc_repmap when calling this function.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>

authored by

Nicholas Krause and committed by
Peter Chen
158ec071 1311d6e3

+1 -2
+1 -2
drivers/usb/chipidea/core.c
··· 120 120 [OP_ENDPTCTRL] = 0xECU, 121 121 }; 122 122 123 - static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) 123 + static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) 124 124 { 125 125 int i; 126 126 ··· 136 136 ? ci_regs_lpm[OP_ENDPTCTRL] 137 137 : ci_regs_nolpm[OP_ENDPTCTRL]); 138 138 139 - return 0; 140 139 } 141 140 142 141 static enum ci_revision ci_get_revision(struct ci_hdrc *ci)