mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-20 15:04:19 +00:00
Various fixes for issues detected by checkpatch
- Return EOPNOTSUPP instead of ENOTSUPP to user space. - Do not terminate macro definitions with a trailing semicolon. - Do not initialize static variables to zero. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9176 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-2
@@ -164,7 +164,7 @@ module_param_call(srpt_service_guid, NULL, srpt_get_u64_x, &srpt_service_guid,
|
||||
MODULE_PARM_DESC(srpt_service_guid,
|
||||
"Using this value for ioc_guid, id_ext, and cm_listen_id instead of using the node_guid of the first HCA.");
|
||||
|
||||
static unsigned int max_sge_delta = 0;
|
||||
static unsigned int max_sge_delta;
|
||||
module_param(max_sge_delta, uint, 0444);
|
||||
MODULE_PARM_DESC(max_sge_delta, "Number to subtract from max_sge (obsolete).");
|
||||
|
||||
@@ -4434,7 +4434,7 @@ static int srpt_add_one(struct ib_device *device)
|
||||
#endif
|
||||
|
||||
sdev->srq = use_srq ? ib_create_srq(sdev->pd, &srq_attr) :
|
||||
ERR_PTR(-ENOTSUPP);
|
||||
ERR_PTR(-EOPNOTSUPP);
|
||||
if (IS_ERR(sdev->srq)) {
|
||||
if (use_srq)
|
||||
pr_debug("ib_create_srq() failed: %ld\n",
|
||||
|
||||
Reference in New Issue
Block a user