* [PATCH v3 1/2] staging: media: sdis: move open brace to a new line
@ 2024-07-30 21:28 Santiago Ruano Rincón
2024-07-30 21:28 ` [PATCH v3 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
0 siblings, 1 reply; 3+ messages in thread
From: Santiago Ruano Rincón @ 2024-07-30 21:28 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.
V3: Insert the change history (including for V2)
V2: Remove spurious [PATCH] header from the Subject, inserted by mistake
---
.../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 v3 2/2] staging: media: sdis: move open braces to the previous line
2024-07-30 21:28 [PATCH v3 1/2] staging: media: sdis: move open brace to a new line Santiago Ruano Rincón
@ 2024-07-30 21:28 ` Santiago Ruano Rincón
2024-07-30 21:41 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Santiago Ruano Rincón @ 2024-07-30 21:28 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
V3: Insert the change history (including for V2)
V2: Remove spurious [PATCH] header from the Subject, inserted by mistake
---
.../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 v3 2/2] staging: media: sdis: move open braces to the previous line
2024-07-30 21:28 ` [PATCH v3 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
@ 2024-07-30 21:41 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2024-07-30 21: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 Wed, Jul 31, 2024 at 06:28:54AM +0900, Santiago Ruano Rincón wrote:
> 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
>
> V3: Insert the change history (including for V2)
>
> V2: Remove spurious [PATCH] header from the Subject, inserted by mistake
> ---
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-31 16:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30 21:28 [PATCH v3 1/2] staging: media: sdis: move open brace to a new line Santiago Ruano Rincón
2024-07-30 21:28 ` [PATCH v3 2/2] staging: media: sdis: move open braces to the previous line Santiago Ruano Rincón
2024-07-30 21:41 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox