diff options
author | Lad Prabhakar <[email protected]> | 2024-10-18 14:34:33 +0100 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-10-22 11:31:27 +0200 |
commit | 0e575e4eb6574f8530b22e8efa6419836cf1ca0d (patch) | |
tree | b4a268689d7947c166ac26bc4b18e901432dc56d /tools/perf/scripts/python/netdev-times.py | |
parent | 40516958d7ec1b3b92d6db879d959eedb8205a4c (diff) |
media: rzg2l-cru: Remove unnecessary WARN_ON check in format func
`WARN_ON(!fmt)` check in `rzg2l_cru_format_bytesperline()` is unnecessary
because the `rzg2l_cru_format_align()` function ensures that a valid
`pixelformat` is set before calling `rzg2l_cru_format_bytesperline()`. As
a result, `rzg2l_cru_format_from_pixel()` is guaranteed to return a
non-NULL value, making the check redundant.
Additionally, the return type of `rzg2l_cru_format_bytesperline()` is
`u32`, but the code returned `-EINVAL`, a negative value. This mismatch is
now resolved by removing the invalid error return path.
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions