commit | daec47b9d37e8d9fb1f2c662d0b85b1514eab1fe | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Tue Jun 21 13:32:07 2016 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Jun 24 17:24:35 2016 -0400 |
tree | 8631fc431dcc3446e91e62011a60f727e706ecd2 | |
parent | b776347f85db62b76d5f0d81761d0c2f9d4381cd [diff] |
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: 135aa9500264 ("clk: convert API to match reset/mailbox style") Reported-by: Coverity Scan Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>