lkml.org 
[lkml]   [2023]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/4] blk-integrity: use sysfs_emit
>  	if (bi->profile && bi->profile->name)
> - return sprintf(page, "%s\n", bi->profile->name);
> + return sysfs_emit(page, "%s\n", bi->profile->name);
> else

Might be worth to drop the else here if you touch the function.

>
> + return sysfs_emit(page, "%d\n", (bi->flags & BLK_INTEGRITY_VERIFY) != 0);

Please shorten these != 0 to !! expressions, i.e.

return sysfs_emit(page, "%d\n", !!(bi->flags & BLK_INTEGRITY_VERIFY));

\
 
 \ /
  Last update: 2023-03-27 01:01    [W:0.635 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site