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

Commit 73401a97 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Fix issues with peripheral buffering control packets"

parents 5bf19393 16d71260
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1146,9 +1146,12 @@ int diag_send_buffering_tx_mode_pkt(uint8_t peripheral,
	int err = 0;
	struct diag_ctrl_peripheral_tx_mode ctrl_pkt;

	if (!peripheral || !params)
	if (!params)
		return -EIO;

	if (peripheral >= NUM_PERIPHERALS)
		return -EINVAL;

	if (!driver->feature[peripheral].peripheral_buffering) {
		pr_debug("diag: In %s, peripheral  %d doesn't support buffering\n",
			 __func__, peripheral);
@@ -1198,7 +1201,7 @@ int diag_send_buffering_wm_values(uint8_t peripheral,
		return -EIO;

	if (peripheral >= NUM_PERIPHERALS)
		return -EIO;
		return -EINVAL;

	if (!driver->feature[peripheral].peripheral_buffering) {
		pr_debug("diag: In %s, peripheral  %d doesn't support buffering\n",