commit | edd0c2cc2b73ff21f356d6cbd3b5bf83e692ea9d | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Sun Dec 27 18:19:19 2015 -0500 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 28 00:57:28 2015 -0500 |
tree | f53afbd27401a0fe0be979dcc2ec350966b09760 | |
parent | be58a0da1672391b246880450e990fe36d7ba24d [diff] |
bnxt_en: Optimize ring alloc and ring free functions. Remove the unnecessary "if" statement before the "for" statement: if (x) { for (i = 0; i < x; i++) ... } Also, change the ring free function to return void as it only returns 0. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>