diff options
| author | Andrew Goodbody <[email protected]> | 2025-10-01 11:05:10 +0100 |
|---|---|---|
| committer | Minkyu Kang <[email protected]> | 2026-02-03 10:42:03 +0900 |
| commit | 548e9a254c7d0bd9796decfea43d7759070c7312 (patch) | |
| tree | 136d71b685a7423a923a279f82c621cdaee7bbc7 /drivers | |
| parent | de6b405e615232817322416b89bcde637ade40d4 (diff) | |
video: nexell: unsigned parameter cannot be negative
The parameter 'alpha' is declared as an unsigned type so cannot be
negative. The code to test it as being less than zero will always fail
and so is redundant and should be removed.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Reviewed-by: Stefan Bosch <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/nexell/soc/s5pxx18_soc_mlc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_mlc.c b/drivers/video/nexell/soc/s5pxx18_soc_mlc.c index c8cf833f308..2c8348bf633 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_mlc.c +++ b/drivers/video/nexell/soc/s5pxx18_soc_mlc.c @@ -1641,8 +1641,6 @@ void nx_mlc_set_layer_alpha256(u32 module_index, u32 layer, u32 alpha) u32 register_data; register struct nx_mlc_register_set *pregister; - if (alpha < 0) - alpha = 0; if (alpha > 255) alpha = 255; |
