mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
Fix compilation if target mode support disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3258,12 +3258,8 @@ static bool __init qla2x00_parse_ini_mode(void)
|
||||
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
static inline bool qla2x00_parse_ini_mode(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_SCSI_QLA2XXX_TARGET */
|
||||
|
||||
/**
|
||||
* qla2x00_module_init - Module initialization.
|
||||
@@ -3292,10 +3288,12 @@ qla2x00_module_init(void)
|
||||
ql2xextended_error_logging = 1;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCSI_QLA2XXX_TARGET
|
||||
if (!qla2x00_parse_ini_mode()) {
|
||||
printk("Wrong qlini_mode value %s\n", qlini_mode);
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Allocate cache for SRBs. */
|
||||
srb_cachep = kmem_cache_create("qla2xxx_srbs", sizeof(srb_t), 0,
|
||||
|
||||
Reference in New Issue
Block a user