MINOR: tree-wide: Simplifiy some tests on SHUT flags by accessing SCs directly
At many places, we simplify the tests on SHUT flags to remove calls to
chn_prod() or chn_cons() function because the corresponding SC is available.
diff --git a/src/proxy.c b/src/proxy.c
index 276228c..89c9cbe 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -3209,7 +3209,7 @@
extern const char *monthname[12];
/* FIXME: Don't watch the other side !*/
- if (unlikely(chn_cons(sc_ic(sc))->flags & SC_FL_SHUTW))
+ if (unlikely(sc_opposite(sc)->flags & SC_FL_SHUTW))
return 1;
chunk_reset(&trash);