ACK: [PATCH] fwts_efi_module: constify read-only argument in check_module_loaded_no_dev

Alex Hung alex.hung at canonical.com
Sun Apr 11 20:54:26 UTC 2021


On 2021-04-11 7:28 a.m., Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Make a read-only function pointer argument const.
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_efi_module.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lib/src/fwts_efi_module.c b/src/lib/src/fwts_efi_module.c
> index 5669f863..3756d614 100644
> --- a/src/lib/src/fwts_efi_module.c
> +++ b/src/lib/src/fwts_efi_module.c
> @@ -36,7 +36,7 @@ static char *module_name = NULL;
>   */
>  static int check_module_loaded_no_dev(
>  	fwts_framework *fw,
> -	char *module)
> +	const char *module)
>  {
>  	bool loaded;
>  
> 


Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list