treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / scsi / ufs / ufs_bsg.h
blobd0991875863140f5950a620f7c363ac39f895289
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2018 Western Digital Corporation
4 */
5 #ifndef UFS_BSG_H
6 #define UFS_BSG_H
8 #include <linux/bsg-lib.h>
9 #include <scsi/scsi.h>
10 #include <scsi/scsi_host.h>
12 #include "ufshcd.h"
13 #include "ufs.h"
15 #ifdef CONFIG_SCSI_UFS_BSG
16 void ufs_bsg_remove(struct ufs_hba *hba);
17 int ufs_bsg_probe(struct ufs_hba *hba);
18 #else
19 static inline void ufs_bsg_remove(struct ufs_hba *hba) {}
20 static inline int ufs_bsg_probe(struct ufs_hba *hba) {return 0; }
21 #endif
23 #endif /* UFS_BSG_H */