Hi Chengguang, On Fri, Feb 1, 2019 at 4:26 AM Chengguang Xu <cgxu...@gmx.com> wrote: > When calling register_blkdev() with specified major > device number, the return code is 0 on success. > So it seems not correct direct assign return code to > variable major_num in this case.
Nice catch! > Signed-off-by: Chengguang Xu <cgxu...@gmx.com> Reviewed-by: Geert Uytterhoeven <ge...@linux-m68k.org> Do you want me to take this patch through the m68k tree, or Jens through the block tree? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds