- Fix unneeded brace in if condition(also, brace was on next line). - Fix leading space warning before struct ia_css_clock_tick *curr_ts. compile tested only (on next-20210129) Signed-off-by: Ayush <ayush@xxxxxxxxxxx> --- .../staging/media/atomisp/pci/runtime/timer/src/timer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/runtime/timer/src/timer.c b/drivers/staging/media/atomisp/pci/runtime/timer/src/timer.c index 679ef8242574..7ca435180c5f 100644 --- a/drivers/staging/media/atomisp/pci/runtime/timer/src/timer.c +++ b/drivers/staging/media/atomisp/pci/runtime/timer/src/timer.c @@ -20,13 +20,12 @@ #include "assert_support.h" int -ia_css_timer_get_current_tick( - struct ia_css_clock_tick *curr_ts) { +ia_css_timer_get_current_tick(struct ia_css_clock_tick *curr_ts) +{ assert(curr_ts); if (!curr_ts) - { return -EINVAL; - } + curr_ts->ticks = (clock_value_t)gp_timer_read(GP_TIMER_SEL); return 0; } -- 2.30.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel