]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: set proper major_num when specifying module param major_num
authorChengguang Xu <cgxu519@gmx.com>
Fri, 1 Feb 2019 03:26:02 +0000 (11:26 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Feb 2019 19:50:40 +0000 (12:50 -0700)
commitbd93c6ef9acb01c9fa69dcee6a192e34548000d1
tree601ac4b8cc6050515e9602a2e8d7c42a85826eb2
parentbd57dfb3ba5d22f773bc2ec7fe3c0178ea4f577d
m68k: set proper major_num when specifying module param major_num

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.

Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/m68k/emu/nfblock.c