@@ -28,14 +28,14 @@ struct fpga_mgr_devres {
/* mops wrappers */
static inline enum fpga_mgr_states fpga_mgr_state(struct fpga_manager *mgr)
{
- if (mgr->mops && mgr->mops->state)
+ if (mgr->mops->state)
return mgr->mops->state(mgr);
return FPGA_MGR_STATE_UNKNOWN;
}
static inline u64 fpga_mgr_status(struct fpga_manager *mgr)
{
- if (mgr->mops && mgr->mops->status)
+ if (mgr->mops->status)
return mgr->mops->status(mgr);
return 0;
}
@@ -93,7 +93,7 @@ static inline int fpga_mgr_write_complete(struct fpga_manager *mgr,
static inline void fpga_mgr_fpga_remove(struct fpga_manager *mgr)
{
- if (mgr->mops && mgr->mops->fpga_remove)
+ if (mgr->mops->fpga_remove)
mgr->mops->fpga_remove(mgr);
}