Thread (13 messages) 13 messages, 2 authors, 2019-05-08

Re: [PATCH V7 RESEND 04/10] can: mcp25xxfd: Add Microchip mcp25xxfd CAN FD driver

From: <hidden>
Date: 2019-05-08 16:00:58

Hi Marc!
On 08.05.2019, at 15:12, Marc Kleine-Budde [off-list ref] wrote:
quoted
static int mcp25xxfd_can_switch_mode_no_wait(struct mcp25xxfd_priv *priv,
					     u32 *reg, int mode)
{
	u32 dummy;
	int ret;

	/* get the current mode/register - if reg is NULL
	 * when the can controller is not setup yet
	 * typically by calling mcp25xxfd_can_sleep_mode
	 * (this only happens during initialization phase)
	 */
	if (reg) {
		if (!reg) {
This looks wrong.
should be:
quoted
		if (!*reg) {
Fixed that - thanks!

Thanks,
	Martin 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help