tdb: Inline the common part of tdb_oob
[samba.git] / lib / tdb / common / io.c
index 28e808143a2dd966fe9d89411e6eea664207a0e3..0de0dabd82760d6ca29bfedae3595f4e5974bf92 100644 (file)
@@ -667,15 +667,9 @@ int tdb_expand(struct tdb_context *tdb, tdb_off_t size)
        return -1;
 }
 
-int tdb_oob(struct tdb_context *tdb, tdb_off_t off, tdb_len_t len, int probe)
+int _tdb_oob(struct tdb_context *tdb, tdb_off_t off, tdb_len_t len, int probe)
 {
-       int ret;
-
-       if (likely((off + len >= off) && (off + len <= tdb->map_size))) {
-               return 0;
-       }
-
-       ret = tdb->methods->tdb_oob(tdb, off, len, probe);
+       int ret = tdb->methods->tdb_oob(tdb, off, len, probe);
        return ret;
 }