treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / ethernet / altera / altera_utils.h
blobb7d772f2dcbb6fbf0631ed09daaedf03291083fb
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Altera TSE SGDMA and MSGDMA Linux driver
3 * Copyright (C) 2014 Altera Corporation. All rights reserved
4 */
6 #include <linux/kernel.h>
8 #ifndef __ALTERA_UTILS_H__
9 #define __ALTERA_UTILS_H__
11 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
12 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
13 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
14 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
16 #endif /* __ALTERA_UTILS_H__*/