In xfs_dialloc: if (start_agno == NULLAGNUMBER) { *inop = NULLFSINO; ---> return 0; if (agno == start_agno) { *inop = NULLFSINO; ---> return noroom ? -ENOSPC : 0; There seem to be multiple ambiguous returns in this function. If the return values for NULLFSINO are 0 (no error code), how is this handled in the caller function? Found using static analysis tools