Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d50c761a authored by Fariya Fatima's avatar Fariya Fatima Committed by John W. Linville
Browse files

rsi: Fixed issue relating to return value.

parent 57a2a093
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -247,7 +247,7 @@ static int rsi_process_pkt(struct rsi_common *common)
	if (!common->rx_data_pkt) {
	if (!common->rx_data_pkt) {
		rsi_dbg(ERR_ZONE, "%s: Failed in memory allocation\n",
		rsi_dbg(ERR_ZONE, "%s: Failed in memory allocation\n",
			__func__);
			__func__);
		return -1;
		return -ENOMEM;
	}
	}


	status = rsi_sdio_host_intf_read_pkt(adapter,
	status = rsi_sdio_host_intf_read_pkt(adapter,
@@ -260,12 +260,10 @@ static int rsi_process_pkt(struct rsi_common *common)
	}
	}


	status = rsi_read_pkt(common, rcv_pkt_len);
	status = rsi_read_pkt(common, rcv_pkt_len);
	kfree(common->rx_data_pkt);
	return status;


fail:
fail:
	kfree(common->rx_data_pkt);
	kfree(common->rx_data_pkt);
	return -1;
	return status;
}
}


/**
/**