treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / hexagon / include / asm / switch_to.h
blob8c7d13fe42e43467ca131ddc5bc7bcbb92899b86
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Task switching definitions for the Hexagon architecture
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 */
8 #ifndef _ASM_SWITCH_TO_H
9 #define _ASM_SWITCH_TO_H
11 struct thread_struct;
13 extern struct task_struct *__switch_to(struct task_struct *,
14 struct task_struct *,
15 struct task_struct *);
17 #define switch_to(p, n, r) do {\
18 r = __switch_to((p), (n), (r));\
19 } while (0)
21 #endif /* _ASM_SWITCH_TO_H */