Staging : media : atomisp : pci : fixed a brace coding sytle issue
Subsystems (4)
PATCH 1/1 Staging : media : atomisp : pci : fixed a brace coding sytle issue
From: Ankit Baluni<[email protected]>
Fixed a coding style issue.
--- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
Quoted 3 lines · Ankit
From: Ankit Baluni<[email protected]>
Fixed a coding style issue.
One time is enough to be sent :-)
The Subject nevertheless can be amended, like
media: atomisp: fixed a brace coding sytle issue
Signature · 2 lines
With Best Regards, Andy Shevchenko
PATCH 1/1 Staging : media : atomisp : fixed a brace coding sytle issue
From: Ankit Baluni<[email protected]>
Fixed a coding style issue.
--- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
Greg KH
maintainerRe: [PATCH] Staging : media : atomisp : fixed a brace coding sytle issue
Quoted 1 line · Ankit
From: Ankit Baluni<[email protected]>
You need a ' ' before the '<' character.
Quoted 2 lines
Fixed a coding style issue.
Be more descriptive of what you are doing, this is vague.
Quoted 2 lines
Signed-off-by Ankit Baluni<[email protected]>
Same here with the ' '.
thanks,
greg k-h
PATCH v2 1/1 Staging : media : atomisp : fixed a brace coding sytle issue
From: Ankit Baluni <[email protected]>
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
--- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
Greg KH
maintainerRe: [PATCH v2] Staging : media : atomisp : fixed a brace coding sytle issue
Quoted 11 lines · Ankit
From: Ankit Baluni <[email protected]>
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
Signed-off-by Ankit Baluni <[email protected]>--- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
What changed from v1?
Always put that below the --- line as the documentation asks for.
thanks,
greg k-h
PATCH v2 1/1 Staging : media : atomisp : fixed a brace coding sytle issue
From: Ankit Baluni <[email protected]>
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
---
Added extra description and added space before '<' in above lines.
drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
PATCH v2 1/1 Staging : media : atomisp : fixed a brace coding sytle issue
In reply to Greg KHFrom: Ankit Baluni <[email protected]>
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
---
Changes in v2:
-Added more description about the patch. -Added space before the symobol '<' in 'From'
and 'Signed-off-by' line.
drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
PATCH v3 1/1 Staging : media : atomisp : fixed a brace coding sytle issue
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
---
Changes in v2:
-Added more description about the patch. -Added space before the symobol '<' in 'From'
and 'Signed-off-by' line.
Changes in v3:
-Removed space before ':' in subject line.
drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
Greg KH
maintainerRe: [PATCH v3] Staging : media : atomisp : fixed a brace coding sytle issue
Quoted 6 lines · Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
Signed-off-by Ankit Baluni <[email protected]>
Quoted 7 lines
---
Changes in v2:
-Added more description about the patch. -Added space before the symobol '<' in 'From'
and 'Signed-off-by' line.
Changes in v3:
-Removed space before ':' in subject line.
No you did not :(
PATCH v3 1/1 Staging: media: atomisp: fixed a brace coding sytle issue
In reply to AnkitRemoved braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
---
Changes in v2:
-Added more description about the patch. -Added space before the symobol '<' in 'From'
and 'Signed-off-by' line.
Changes in v3:
-Removed space before ':' in subject line.
drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/media/atomisp/pci/atomisp_cmd.c +1 -2
@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);
Signature · 1 line
2.25.1
Re: [PATCH v3] Staging: media: atomisp: fixed a brace coding sytle issue
Quoted 3 lines · Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules.
Quoted 31 lines
Signed-off-by Ankit Baluni <[email protected]>---
Changes in v2:
-Added more description about the patch. -Added space before the symobol '<' in 'From'
and 'Signed-off-by' line.
Changes in v3:
-Removed space before ':' in subject line.drivers/staging/media/atomisp/pci/atomisp_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/staging/media/atomisp/pci/atomisp_cmd.c +1
-2@@ -4981,9 +4981,8 @@ enum mipi_port_id __get_mipi_port(struct atomisp_device *isp,case ATOMISP_CAMERA_PORT_SECONDARY :return MIPI_PORT1_ID ;case ATOMISP_CAMERA_PORT_TERTIARY : -if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID ) { +if (MIPI_PORT1_ID +1 !=N_MIPI_PORT_ID )return MIPI_PORT1_ID +1 ; - }/* fall through */ default :dev_err (isp->dev,"unsupported port: %d\n" , port);Signature · 1 line
2.25.1
Signature · 2 lines
With Best Regards, Andy Shevchenko