Skip to content
Snippets Groups Projects
Commit df8b0a03 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

clk: sandbox: don't check clk ID against 0


clk->id is unsigned, so it can't be < 0. Remove the check for that.

FWIW, this issue was introduced when the clock API converted e.g.
clk_get_rate()'s clock ID parameter from an int to an unsigned long
(with a struct clk), without removing this check.

Fixes: 135aa950 ("clk: convert API to match reset/mailbox style")
Reported-by: Coverity Scan
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent bd62e241
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment