Skip to content
Commit db247220 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Daniel DeGrasse
Browse files

drivers: wifi: siwx91x: Align the ways errors are managed



Unify the way the error code are tested:
  - sl_status_t is an alias to an int. The compiler won't complain if an
    int is assigned or compared to a sl_status_t. In the other hand,
    "int" is well known to manage error code. So, just use "int"
    everywhere.
  - Always name the return code "ret"
  - Unless it is meaningful, test the value of ret against 0
    (SL_STATUS_OK is just a convoluted way to say 0).

Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
parent dd0afec0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment