On (04/23/15 11:38), Minchan Kim wrote:
> > +
> > +   pr_info("Removed device: %s\n", zram->disk->disk_name);
> 
> trivial:
> 
> why did you add the info in the middle of logic functions?
> Without special reason, let's add it top of the zram_remove.
> 

ok.

        -ss

> Acked-by: Minchan Kim <minc...@kernel.org>
> 
> >     del_gendisk(zram->disk);
> >     put_disk(zram->disk);
> >     kfree(zram);
> > @@ -1281,7 +1285,6 @@ static void destroy_devices(void)
> >     idr_for_each(&zram_index_idr, &zram_exit_cb, NULL);
> >     idr_destroy(&zram_index_idr);
> >     unregister_blkdev(zram_major, "zram");
> > -   pr_info("Destroyed device(s)\n");
> >  }
> >  
> >  static int __init zram_init(void)
> > @@ -1300,7 +1303,6 @@ static int __init zram_init(void)
> >                     goto out_error;
> >     }
> >  
> > -   pr_info("Created %u device(s)\n", num_devices);
> >     return 0;
> >  
> >  out_error:
> > -- 
> > 2.4.0.rc2
> > 
> 
> -- 
> Kind regards,
> Minchan Kim
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to