On 29/09/2020 08:22, Mauro Carvalho Chehab wrote:

> @@ -487,7 +489,7 @@ static void of_spmi_register_devices(struct 
> spmi_controller *ctrl)
>                       continue;
>  
>               sdev->dev.of_node = node;
> -             sdev->usid = (u8) reg[0];
> +             sdev->usid = (u8)reg[0];

typeof(sdev->usid) is u8.

What is the point of this cast?

Does GCC warn that u32 is being truncated to u8?

Regards.

Reply via email to