treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / m68k / include / asm / unaligned.h
blob98c8930d3d3599077b26dfab069634045e35e059
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M68K_UNALIGNED_H
3 #define _ASM_M68K_UNALIGNED_H
6 #ifdef CONFIG_CPU_HAS_NO_UNALIGNED
7 #include <linux/unaligned/be_struct.h>
8 #include <linux/unaligned/le_byteshift.h>
9 #include <linux/unaligned/generic.h>
11 #define get_unaligned __get_unaligned_be
12 #define put_unaligned __put_unaligned_be
14 #else
16 * The m68k can do unaligned accesses itself.
18 #include <linux/unaligned/access_ok.h>
19 #include <linux/unaligned/generic.h>
21 #define get_unaligned __get_unaligned_be
22 #define put_unaligned __put_unaligned_be
24 #endif
26 #endif /* _ASM_M68K_UNALIGNED_H */