case1: statement "if (bustype != BUSTYPE(bustype))"
equals "if (bustype != bustype)" when BCMBUSTYPE is
not defined. Some compilers treat it as a build warning.
case2: fix misleadingly indented of dhd_os_sdunlock(dhdp)
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
} else
bcmerror = BCME_SDIO_ERROR;
- dhd_os_sdunlock(dhdp);
+ dhd_os_sdunlock(dhdp);
} else {
bcmerror = BCME_SDIO_ERROR;
DHD_INFO(("%s called when dongle is not in reset\n",
}
sih->bustype = bustype;
- if (bustype != BUSTYPE(bustype)) {
- SI_ERROR(("si_doattach: bus type %d does not match configured bus type %d\n",
- bustype, BUSTYPE(bustype)));
- return NULL;
- }
/* bus/core/clk setup for register access */
if (!si_buscore_prep(sii, bustype, devid, sdh)) {