* [PATCH v2 1/2] staging: media: sdis: move open brace to a new line
@ 2024-07-30 8:06 Santiago Ruano Rincón
2024-07-30 8:06 ` [PATCH v2 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
2024-07-30 15:41 ` [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Dan Carpenter
0 siblings, 2 replies; 3+ messages in thread
From: Santiago Ruano Rincón @ 2024-07-30 8:06 UTC (permalink / raw)
To: Hans de Goede, Mauro Carvalho Chehab, Sakari Ailus,
Greg Kroah-Hartman, linux-media, linux-staging, linux-kernel
Cc: helen.koike, ~lkcamp/patches
Fix checkpatch error "ERROR: open brace '{' following function
definitions go on the next line" in sdis_1.0/ia_css_sdis.host.c:239.
Signed-off-by: Santiago Ruano Rincón <santiagorr@riseup.net>
---
This is one of my first patches. Could you please tell me if is there
anything wrong with it? Thank you.
---
---
.../atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
index bf0a768f8..cabacfc84 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
@@ -239,7 +239,8 @@ void ia_css_sdis_clear_coefficients(
int
ia_css_get_dvs_statistics(
struct ia_css_dvs_statistics *host_stats,
- const struct ia_css_isp_dvs_statistics *isp_stats) {
+ const struct ia_css_isp_dvs_statistics *isp_stats)
+{
struct ia_css_isp_dvs_statistics_map *map;
int ret = 0;
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2 2/2] staging: media: sdis: move open braces to the previous line
2024-07-30 8:06 [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Santiago Ruano Rincón
@ 2024-07-30 8:06 ` Santiago Ruano Rincón
2024-07-30 15:41 ` [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Dan Carpenter
1 sibling, 0 replies; 3+ messages in thread
From: Santiago Ruano Rincón @ 2024-07-30 8:06 UTC (permalink / raw)
To: Hans de Goede, Mauro Carvalho Chehab, Sakari Ailus,
Greg Kroah-Hartman, linux-media, linux-staging, linux-kernel
Cc: helen.koike, ~lkcamp/patches
Fix checkpatch error "ERROR: that open brace { should be on the previous
line" in ia_css_sdis.host.c:253 and :258.
Signed-off-by: Santiago Ruano Rincón <santiagorr@riseup.net>
---
This is one of my first patches. Could you please if is there anything
wrong with it? Thank you
---
---
.../pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
index cabacfc84..467572d84 100644
--- a/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
+++ b/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.c
@@ -250,13 +250,11 @@ ia_css_get_dvs_statistics(
assert(isp_stats);
map = ia_css_isp_dvs_statistics_map_allocate(isp_stats, NULL);
- if (map)
- {
+ if (map) {
hmm_load(isp_stats->data_ptr, map->data_ptr, isp_stats->size);
ia_css_translate_dvs_statistics(host_stats, map);
ia_css_isp_dvs_statistics_map_free(map);
- } else
- {
+ } else {
IA_CSS_ERROR("out of memory");
ret = -ENOMEM;
}
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] staging: media: sdis: move open brace to a new line
2024-07-30 8:06 [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Santiago Ruano Rincón
2024-07-30 8:06 ` [PATCH v2 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
@ 2024-07-30 15:41 ` Dan Carpenter
1 sibling, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2024-07-30 15:41 UTC (permalink / raw)
To: Santiago Ruano Rincón
Cc: Hans de Goede, Mauro Carvalho Chehab, Sakari Ailus,
Greg Kroah-Hartman, linux-media, linux-staging, linux-kernel,
helen.koike, ~lkcamp/patches
On Tue, Jul 30, 2024 at 05:06:27PM +0900, Santiago Ruano Rincón wrote:
> Fix checkpatch error "ERROR: open brace '{' following function
> definitions go on the next line" in sdis_1.0/ia_css_sdis.host.c:239.
>
> Signed-off-by: Santiago Ruano Rincón <santiagorr@riseup.net>
>
> ---
> This is one of my first patches. Could you please tell me if is there
> anything wrong with it? Thank you.
v2 patches need to say what changed since v1.
https://staticthinking.wordpress.com/2022/07/27/how-to-send-a-v2-patch/
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-30 15:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30 8:06 [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Santiago Ruano Rincón
2024-07-30 8:06 ` [PATCH v2 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
2024-07-30 15:41 ` [PATCH v2 1/2] staging: media: sdis: move open brace to a new line Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox