projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iw_cxgb4: handle draining an idle qp
[deliverable/linux.git]
/
drivers
/
clk
/
clk-axi-clkgen.c
diff --git
a/drivers/clk/clk-axi-clkgen.c
b/drivers/clk/clk-axi-clkgen.c
index 9a0744c9947c5fc3dc439f679b5c85e88b9b3c86..3294db3b4e4e7303903b7a0b10a149b25642b148 100644
(file)
--- a/
drivers/clk/clk-axi-clkgen.c
+++ b/
drivers/clk/clk-axi-clkgen.c
@@
-328,10
+328,7
@@
static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw,
tmp = (unsigned long long)(parent_rate / d) * m;
do_div(tmp, dout);
- if (tmp > ULONG_MAX)
- return ULONG_MAX;
-
- return tmp;
+ return min_t(unsigned long long, tmp, ULONG_MAX);
}
static int axi_clkgen_enable(struct clk_hw *clk_hw)
This page took
0.033232 seconds
and
5
git commands to generate.