Message ID | 8eccc2e6-d33b-6130-2460-86a1d67159ae@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
> > Make indentation consistent. Detected by smatch. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Cc: Hal Rosenstock <hal@mellanox.com> > Cc: Ira Weiny <ira.weiny@intel.com> Reviewed-By: Ira Weiny <ira.weiny@intel.com> > --- > drivers/infiniband/core/mad.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c > index 82fb511..2d49228 100644 > --- a/drivers/infiniband/core/mad.c > +++ b/drivers/infiniband/core/mad.c > @@ -1638,9 +1638,9 @@ static void remove_mad_reg_req(struct > ib_mad_agent_private *agent_priv) > /* Now, check to see if there are any methods still in use */ > if (!check_method_table(method)) { > /* If not, release management method table */ > - kfree(method); > - class->method_table[mgmt_class] = NULL; > - /* Any management classes left ? */ > + kfree(method); > + class->method_table[mgmt_class] = NULL; > + /* Any management classes left ? */ > if (!check_class_table(class)) { > /* If not, release management class table */ > kfree(class); > -- > 2.8.3
On 6/3/2016 3:08 PM, Bart Van Assche wrote: > Make indentation consistent. Detected by smatch. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Cc: Hal Rosenstock <hal@mellanox.com> > Cc: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Hal Rosenstock <hal@mellanox.com> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index 82fb511..2d49228 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c @@ -1638,9 +1638,9 @@ static void remove_mad_reg_req(struct ib_mad_agent_private *agent_priv) /* Now, check to see if there are any methods still in use */ if (!check_method_table(method)) { /* If not, release management method table */ - kfree(method); - class->method_table[mgmt_class] = NULL; - /* Any management classes left ? */ + kfree(method); + class->method_table[mgmt_class] = NULL; + /* Any management classes left ? */ if (!check_class_table(class)) { /* If not, release management class table */ kfree(class);
Make indentation consistent. Detected by smatch. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Hal Rosenstock <hal@mellanox.com> Cc: Ira Weiny <ira.weiny@intel.com> --- drivers/infiniband/core/mad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)