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

Commit 64bdffbb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: pd: Don't print pd_send_msg error if PD not connected"

parents ff2a1791 5e8623bd
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -696,8 +696,10 @@ static int pd_send_msg(struct usbpd *pd, u8 msg_type, const u32 *data,

	ret = pd_phy_write(hdr, (u8 *)data, num_data * sizeof(u32), sop);
	if (ret) {
		if (pd->pd_connected)
			usbpd_err(&pd->dev, "Error sending %s: %d\n",
				msg_to_string(msg_type, num_data, false),
					msg_to_string(msg_type, num_data,
							false),
					ret);
		return ret;
	}