drm/i915: Remove spurious semicolons
Subsystems (2)
PATCH 1/1 drm/i915: Remove spurious semicolons
Found by running the semicolon.cocci spatch:
https://github.com/coccinelle/coccinellery/blob/master/semicolon/semicolon.cocci
Signed-off-by Damien Lespiau <[email protected]>
--- drivers/gpu/drm/i915/dvo_ch7xxx.c | 2 +- drivers/gpu/drm/i915/dvo_ivch.c | 2 +- drivers/gpu/drm/i915/dvo_ns2501.c | 2 +- drivers/gpu/drm/i915/dvo_sil164.c | 2 +- drivers/gpu/drm/i915/dvo_tfp410.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/dvo_ch7xxx.c +1 -1
@@ -160,7 +160,7 @@ static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!ch7xxx->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",
drivers/gpu/drm/i915/dvo_ivch.c +1 -1
@@ -195,7 +195,7 @@ static bool ivch_read(struct intel_dvo_device *dvo, int addr, uint16_t *data)if (i2c_transfer (adapter, msgs,3 ) ==3 ) { *data = (in_buf[1 ] <<8 ) | in_buf[0 ];return true; - }; + }if (!priv->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from "
drivers/gpu/drm/i915/dvo_ns2501.c +1 -1
@@ -121,7 +121,7 @@ static bool ns2501_readb(struct intel_dvo_device *dvo, int addr, uint8_t * ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!ns->quiet) {DRM_DEBUG_KMS
drivers/gpu/drm/i915/dvo_sil164.c +1 -1
@@ -93,7 +93,7 @@ static bool sil164_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!sil->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",
drivers/gpu/drm/i915/dvo_tfp410.c +1 -1
@@ -118,7 +118,7 @@ static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!tfp->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",
Signature · 1 line
1.8.3.1
Quoted 4 lines · Damien Lespiau
Found by running the
semicolon.coccispatch:https://github.com/coccinelle/coccinellery/blob/master/semicolon/semicolon.cocci
Reviewed-by Jani Nikula <[email protected]>
Quoted 81 lines
Signed-off-by Damien Lespiau <[email protected]>--- drivers/gpu/drm/i915/dvo_ch7xxx.c | 2 +- drivers/gpu/drm/i915/dvo_ivch.c | 2 +- drivers/gpu/drm/i915/dvo_ns2501.c | 2 +- drivers/gpu/drm/i915/dvo_sil164.c | 2 +- drivers/gpu/drm/i915/dvo_tfp410.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/i915/dvo_ch7xxx.c +1
-1@@ -160,7 +160,7 @@ static bool ch7xxx_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!ch7xxx->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",drivers/gpu/drm/i915/dvo_ivch.c +1
-1@@ -195,7 +195,7 @@ static bool ivch_read(struct intel_dvo_device *dvo, int addr, uint16_t *data)if (i2c_transfer (adapter, msgs,3 ) ==3 ) { *data = (in_buf[1 ] <<8 ) | in_buf[0 ];return true; - }; + }if (!priv->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from "drivers/gpu/drm/i915/dvo_ns2501.c +1
-1@@ -121,7 +121,7 @@ static bool ns2501_readb(struct intel_dvo_device *dvo, int addr, uint8_t * ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!ns->quiet) {DRM_DEBUG_KMS drivers/gpu/drm/i915/dvo_sil164.c +1
-1@@ -93,7 +93,7 @@ static bool sil164_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!sil->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",drivers/gpu/drm/i915/dvo_tfp410.c +1
-1@@ -118,7 +118,7 @@ static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch)if (i2c_transfer (adapter, msgs,2 ) ==2 ) { *ch = in_buf[0 ];return true; - }; + }if (!tfp->quiet) { DRM_DEBUG_KMS("Unable to read register 0x%02x from %s:%02x.\n",Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center