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>
This commit is contained in:
parent
1311d6e3ea
commit
158ec071fb
1 changed files with 1 additions and 2 deletions
|
@ -120,7 +120,7 @@ static const u8 ci_regs_lpm[] = {
|
||||||
[OP_ENDPTCTRL] = 0xECU,
|
[OP_ENDPTCTRL] = 0xECU,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm)
|
static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -136,7 +136,6 @@ static int hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm)
|
||||||
? ci_regs_lpm[OP_ENDPTCTRL]
|
? ci_regs_lpm[OP_ENDPTCTRL]
|
||||||
: ci_regs_nolpm[OP_ENDPTCTRL]);
|
: ci_regs_nolpm[OP_ENDPTCTRL]);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum ci_revision ci_get_revision(struct ci_hdrc *ci)
|
static enum ci_revision ci_get_revision(struct ci_hdrc *ci)
|
||||||
|
|
Loading…
Reference in a new issue