mbox series

[0/2] Remove unused return values from functions

Message ID cover.1697619623.git.anonolitunya@gmail.com (mailing list archive)
Headers show
Series Remove unused return values from functions | expand

Message

Dorcas Litunya Oct. 18, 2023, 9:07 a.m. UTC
Modifies the return type of different static functions to void as the return value is being ignored
in all funtion calls thus not useful to have a return type.This improves
code readability and maintainability.

Dorcas AnonoLitunya (2):
  staging: sm750fb: Remove unused return value in
    display_control_adjust_sm750le()
  staging: sm750fb: Remove unused return value in
    program_mode_registers()

 drivers/staging/sm750fb/ddk750_mode.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

Comments

Julia Lawall Oct. 18, 2023, 12:07 p.m. UTC | #1
On Wed, 18 Oct 2023, Dorcas AnonoLitunya wrote:

> Modifies the return type of different static functions to void as the return value is being ignored
> in all funtion calls thus not useful to have a return type.This improves
> code readability and maintainability.

Remember to put a space between a period and the start of the next
sentence.

julia

>
> Dorcas AnonoLitunya (2):
>   staging: sm750fb: Remove unused return value in
>     display_control_adjust_sm750le()
>   staging: sm750fb: Remove unused return value in
>     program_mode_registers()
>
>  drivers/staging/sm750fb/ddk750_mode.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>
> --
> 2.42.0.345.gaab89be2eb
>
>
>