[RFC PATCH v1 03/12] crypto: Replace strstarts() by str_has_prefix().

2020-12-04 Thread laniel_francis
From: Francis Laniel The two functions indicates if a string begins with a given prefix. The only difference is that strstarts() returns a bool while str_has_prefix() returns the length of the prefix if the string begins with it or 0 otherwise. Signed-off-by: Francis Laniel --- crypto/essiv.c

[RFC PATCH v1 00/12] Replace strstarts() by str_has_prefix()

2020-12-04 Thread laniel_francis
From: Francis Laniel Hi. First, I hope you are fine and the same for your relatives. In this patch set, I replaced all calls to strstarts() by calls to str_has_prefix(). Indeed, the kernel has two functions to test if a string begins with an other: 1. strstarts() which returns a bool, so 1 if