[NET]: Clean up comments for sk_chk_filter()

This removes redundant comments, and moves one comment to a better
location.

Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Kris Katterjohn and committed by David S. Miller 7b11f69f 46b86a2d

+3 -7
+3 -7
net/core/filter.c
··· 287 287 * no references or jumps that are out of range, no illegal 288 288 * instructions, and must end with a RET instruction. 289 289 * 290 - * Returns 0 if the rule set is legal or a negative errno code if not. 290 + * All jumps are forward as they are not signed. 291 + * 292 + * Returns 0 if the rule set is legal or -EINVAL if not. 291 293 */ 292 294 int sk_chk_filter(struct sock_filter *filter, int flen) 293 295 { ··· 301 299 302 300 /* check the filter code now */ 303 301 for (pc = 0; pc < flen; pc++) { 304 - /* all jumps are forward as they are not signed */ 305 302 ftest = &filter[pc]; 306 303 307 304 /* Only allow valid instructions */ ··· 384 383 } 385 384 } 386 385 387 - /* 388 - * The program must end with a return. We don't care where they 389 - * jumped within the script (its always forwards) but in the end 390 - * they _will_ hit this. 391 - */ 392 386 return (BPF_CLASS(filter[flen - 1].code) == BPF_RET) ? 0 : -EINVAL; 393 387 } 394 388