qcacld-3.0: Fix return value for pld_is_fw_down

Fix return value for pld_is_fw_down. Always return 0 for
unsupported bus type.

CRs-Fixed: 2319880
Change-Id: I64de028c7dd0c6a411b2d5b5f5e03bdfebed03cc
This commit is contained in:
Yuanyuan Liu 2018-09-20 18:02:53 -07:00 • committed by nshrivas
commit 46dc5cd3b1

View file

@ -1482,7 +1482,7 @@ int pld_is_qmi_disable(struct device *dev)
*
* Return: 1 FW is down
* 0 FW is not down
* Non zero failure code for errors
* Always return 0 for unsupported bus type
*/
int pld_is_fw_down(struct device *dev)
{
@ -1493,6 +1493,10 @@ int pld_is_fw_down(struct device *dev)
case PLD_BUS_TYPE_SNOC:
ret = pld_snoc_is_fw_down(dev);
break;
case PLD_BUS_TYPE_PCIE:
case PLD_BUS_TYPE_SDIO:
case PLD_BUS_TYPE_USB:
break;
default:
pr_err("Invalid device type %d\n", type);
ret = -EINVAL;