drivers: w1: fix order of operands in comparisons
Subsystems (2)
PATCH 2/2 drivers: w1: fix order of operands in comparisons
Coding style corrections as identified by checkpatch.pl script. Re-ordered comparisons to have constants on the right hand side.
Signed-off-by Ben Werbowyj <[email protected]>
--- drivers/w1/masters/omap_hdq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/w1/masters/omap_hdq.c +4 -4
@@ -438,14 +438,14 @@ static int omap_hdq_get(struct hdq_data *hdq_data) goto rtn; } -if (OMAP_HDQ_MAX_USER = hdq_data->hdq_usecount) { +if (hdq_data->hdq_usecount =OMAP_HDQ_MAX_USER ) {dev_dbg (hdq_data->dev,"attempt to exceed the max use count" ); ret = -EINVAL ; goto out; }else { hdq_data->hdq_usecount++;try_module_get (THIS_MODULE ); - if (1 = hdq_data->hdq_usecount) { +if (hdq_data->hdq_usecount =1 ) {pm_runtime_get_sync (hdq_data->dev);
@@ -486,14 +486,14 @@ static int omap_hdq_put(struct hdq_data *hdq_data)hdq_reg_out (hdq_data,OMAP_HDQ_SYSCONFIG ,OMAP_HDQ_SYSCONFIG_AUTOIDLE ); - if (0 = hdq_data->hdq_usecount) { +if (hdq_data->hdq_usecount =0 ) {dev_dbg (hdq_data->dev,"attempt to decrement use count when it is zero" ); ret = -EINVAL ; }else { hdq_data->hdq_usecount--;module_put (THIS_MODULE ); - if (0 = hdq_data->hdq_usecount) +if (hdq_data->hdq_usecount =0 )pm_runtime_put_sync (hdq_data->dev); }mutex_unlock (&hdq_data->hdq_mutex);
Signature · 1 line
2.1.4