Re: [PATCH v2 4/4] scatterlist: add sgl_memset()

2020-10-19 Thread Bodo Stroesser
AFAICS, there are 2 unneeded lines in the new implementation of sgl_memset. Please see details below. Am 18.10.20 um 19:13 schrieb Douglas Gilbert: The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes.

[PATCH v2 4/4] scatterlist: add sgl_memset()

2020-10-18 Thread Douglas Gilbert
The existing sg_zero_buffer() function is a bit restrictive. For example protection information (PI) blocks are usually initialized to 0xff bytes. As its name suggests sgl_memset() is modelled on memset(). One difference is the type of the val argument which is u8 rather than int. Plus it returns