Thread (4 messages) 4 messages, 2 authors, 2019-05-03

Re: [PATCH] HID: rmi: fix devm_add_action_or_reset() parameter

From: Jiri Kosina <jikos@kernel.org>
Date: 2019-05-03 12:42:23
Also in: lkml

On Fri, 3 May 2019, Fabien DESSENNE wrote:
quoted
quoted
-	ret = devm_add_action_or_reset(&hdev->dev, &rmi_irq_teardown, hdata);
+	ret = devm_add_action_or_reset(&hdev->dev, rmi_irq_teardown, hdata);
Why do you think this is wrong C?
Because I was not aware that both func and &func refer to the same 
function pointer.

Now I know :)
Yup, it's defined in 6.3.2.1.4 in C99.

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help