Thread (1 message) 1 message, 1 author, 2007-09-27

Re: [RFC] QoS params patch

From: Randy Dunlap <hidden>
Date: 2007-09-27 04:05:15

On Thu, 27 Sep 2007 11:24:40 +0900 Paul Mundt wrote:
quoted
+/* static helper functions */
+static s32 max_compare(s32 v1, s32 v2)
+{
+	if (v1 < v2)
+		return v2;
+	else
+		return v1;
+}
+
+static s32 min_compare(s32 v1, s32 v2)
+{
+	if (v1 < v2)
+		return v1;
+	else
+		return v2;
+}
+
min()/max() instead?
Other code wants function pointers to the min & max functions.
That's why they are here AFAICT.

quoted
+/* assumes qos_lock is held */
+static void update_target(int i)
+{
'target' might be a more meaningful variable name.
Anything but 'i'.

---
~Randy
Phaedrus says that Quality is about caring.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help