Covscan-induced review of ei_insert()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | segtree: Drop needless insertion in ei_insert()src/ | +2 | 1 reply | |
| 2/4 | segtree: Drop dead code in ei_insert()src/ | +0 | 1 reply | |
| 3/4 | segtree: Simplify overlap case in ei_insert()src/ | +4 | 1 reply | |
| 4/4 | segtree: Refactor ei_insert()src/ | +28 | 4 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Pablo Neira Ayuso |
|---|---|
| 1/4 | A-b |
| 2/4 | A-b |
| 3/4 | A-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [nft PATCH 0/4] Covscan-induced review of ei_insert()
False covscan report led to closer investigation ei_insert() which identified dead code and some opportunities for improvement due to the fact that the only caller sorts the new intervals prior to calling said function.
Note that if we at some point want to support merging of new and old set elements, we will probably have to revert these patches since we can't be sure anymore that there aren't any items with bigger values in the set already.
Phil Sutter (4):
segtree: Drop needless insertion in ei_insert()
segtree: Drop dead code in ei_insert()
segtree: Simplify overlap case in ei_insert()
segtree: Refactor ei_insert()
src/segtree.c | 101 +++++++++++++------------------------------------- 1 file changed, 25 insertions(+), 76 deletions(-)
Signature · 1 line
2.24.1