treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / nds32 / lib / memzero.S
blobf055972c93432d1e061f8ee6d9ce8e11c5b77620
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
4 #include <linux/linkage.h>
6         .text
7 ENTRY(memzero)
8         beqz    $r1, 1f
9         push    $lp
10         move    $r2, $r1
11         move    $r1, #0
12         push    $r0
13         bal     memset
14         pop     $r0
15         pop     $lp
17         ret
18 ENDPROC(memzero)