diff options
| author | Arnd Bergmann <[email protected]> | 2017-01-16 12:06:09 +0100 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2017-02-20 12:16:06 +0100 |
| commit | d24cdcd3e40a6825135498e11c20c7976b9bf545 (patch) | |
| tree | 6ad455b6a3c86b968f47dfdc0b09321bbe9e9bff /lib/mpi/mpi-cmp.c | |
| parent | eb65b919b914e65485fd8134912066f4fafc4f1e (diff) | |
libceph: use BUG() instead of BUG_ON(1)
I ran into this compile warning, which is the result of BUG_ON(1)
not always leading to the compiler treating the code path as
unreachable:
include/linux/ceph/osdmap.h: In function 'ceph_can_shift_osds':
include/linux/ceph/osdmap.h:62:1: error: control reaches end of non-void function [-Werror=return-type]
Using BUG() here avoids the warning.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions