From ac9101941e5ea97fdec35a480d6270bf68bbab90 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 15 Sep 2013 00:15:50 +0200 Subject: [PATCH] Add likely() to tracked_fds_find(). --- src/trackfds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trackfds.h b/src/trackfds.h index 243e8e0..d45f128 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -402,7 +402,7 @@ inline static int tracked_fds_find(int fd) { return 0; } - if (fd < TRACKFDS_STATIC_COUNT) { + if (likely(fd < TRACKFDS_STATIC_COUNT)) { return tracked_fds[fd]; } -- 2.45.2