treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / s390 / include / asm / schid.h
blob3ac405a67ff0b2b722d79a1835097d127f315d4c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASM_SCHID_H
3 #define ASM_SCHID_H
5 #include <linux/string.h>
6 #include <uapi/asm/schid.h>
8 /* Helper function for sane state of pre-allocated subchannel_id. */
9 static inline void
10 init_subchannel_id(struct subchannel_id *schid)
12 memset(schid, 0, sizeof(struct subchannel_id));
13 schid->one = 1;
16 static inline int
17 schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
19 return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
22 #endif /* ASM_SCHID_H */