Correctly handle division on 32-bit RHEL5 systems by returning dividend.

This commit is contained in:
Brian Behlendorf 2009-12-01 15:53:28 -08:00
parent 5652e7b497
commit db1aa22297
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ uint64_t __udivdi3(uint64_t dividend, uint64_t divisor)
} else } else
d = divisor; d = divisor;
return do_div(dividend, d); do_div(dividend, d);
return dividend;
#endif /* HAVE_DIV64_64, HAVE_DIV64_U64 */ #endif /* HAVE_DIV64_64, HAVE_DIV64_U64 */
} }
EXPORT_SYMBOL(__udivdi3); EXPORT_SYMBOL(__udivdi3);