mirror of https://gitee.com/openkylin/linux.git
usb: cnds3: drd: deleted !=
Patch deletes unnecessary != from condition statement in cdns3_drd_init function. Reviewed-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
parent
27afe16612
commit
ecf4f823fb
|
@ -365,7 +365,7 @@ int cdns3_drd_init(struct cdns3 *cdns)
|
|||
}
|
||||
|
||||
state = readl(&cdns->otg_regs->sts);
|
||||
if (OTGSTS_OTG_NRDY(state) != 0) {
|
||||
if (OTGSTS_OTG_NRDY(state)) {
|
||||
dev_err(cdns->dev, "Cadence USB3 OTG device not ready\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue