Skip to content

rpmsg: Fix macro parameter mismatch and dead bool return type - #698

Open
cshilwant wants to merge 2 commits into
OpenAMP:mainfrom
cshilwant:main
Open

rpmsg: Fix macro parameter mismatch and dead bool return type#698
cshilwant wants to merge 2 commits into
OpenAMP:mainfrom
cshilwant:main

Conversation

@cshilwant

Copy link
Copy Markdown

No description provided.

The macro body references 'rp_hdr' instead of using the declared
parameter 'rphdr'. This causes the macro to ignore its argument and
always reference whatever 'rp_hdr' variable exists in the calling
scope. Fix by using the parameter name in the macro body.

Fixes: commit b32187e ("openamp: change rx/tx buffer hold flag to count")

Signed-off-by: Chirag Shilwant <c-shilwant@ti.com>
The function unconditionally returns true and neither call site
checks the return value. Remove the dead return and change the
return type to void.

Fixes: commit b32187e ("openamp: change rx/tx buffer hold flag to count")

Signed-off-by: Chirag Shilwant <c-shilwant@ti.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants