Skip to content
Commit 011e7848 authored by Siddharth Chandrasekaran's avatar Siddharth Chandrasekaran Committed by Carles Cufí
Browse files

mgmt/osdp: More error handling and other cleanups



cp_build_command returns the length of the built packet and early
returns for errors. This means there is no need to keep track of return
code in a separate variable -- if we reached the end, we succeeded.

Along with this change, some more changes to enhance maintainability and
readability are also done.

Signed-off-by: default avatarSiddharth Chandrasekaran <sidcha.dev@gmail.com>
parent 20f806de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment