{
void __iomem *addr;
- if (clk_num < 0 && clk_num > MAX_CLK_COUNT) {
+ if (clk_num < 0 || clk_num >= MAX_CLK_COUNT) {
pr_err("Clock number out of range (%d)\n", clk_num);
return -EINVAL;
}
{
u32 ret;
- if (clk_num < 0 && clk_num > MAX_CLK_COUNT) {
+ if (clk_num < 0 || clk_num >= MAX_CLK_COUNT) {
pr_err("Clock number out of range (%d)\n", clk_num);
return -EINVAL;
}
{
void __iomem *addr;
- if (clk_num < 0 && clk_num > MAX_CLK_COUNT) {
+ if (clk_num < 0 || clk_num >= MAX_CLK_COUNT) {
pr_err("Clock number out of range (%d)\n", clk_num);
return -EINVAL;
}
{
int ret;
- if (clk_num < 0 && clk_num > MAX_CLK_COUNT) {
+ if (clk_num < 0 || clk_num >= MAX_CLK_COUNT) {
pr_err("Clock number out of range (%d)\n", clk_num);
return -EINVAL;
}