lkml.org 
[lkml]   [2022]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 03/20] block, blksnap: module management interface functions
Date

> +static int ioctl_snapshot_wait_event(unsigned long arg)
> +{
> + int ret = 0;
> + struct blk_snap_snapshot_event *karg;
> + struct event *event;
> +
> + //pr_debug("Wait event\n");

please avoid avove comment style and remove debug statements.

> + karg = kzalloc(sizeof(struct blk_snap_snapshot_event), GFP_KERNEL);
> + if (!karg)
> + return -ENOMEM;

-ck


\
 
 \ /
  Last update: 2022-06-14 00:45    [W:0.416 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site