mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
[PATCH] pktcdvd: rename a variable for better readability
pktcdvd: Rename a variable for better readability. Signed-off-by: Thomas Maier <balagi@justmail.de> Signed-off-by: Peter Osterlund <petero2@telia.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7822082d4e
commit
add216608a
1 changed files with 7 additions and 7 deletions
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
|
static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
|
||||||
static struct proc_dir_entry *pkt_proc;
|
static struct proc_dir_entry *pkt_proc;
|
||||||
static int pkt_major;
|
static int pktdev_major;
|
||||||
static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */
|
static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */
|
||||||
static mempool_t *psd_pool;
|
static mempool_t *psd_pool;
|
||||||
|
|
||||||
|
@ -2476,7 +2476,7 @@ static int pkt_setup_dev(struct pkt_ctrl_command *ctrl_cmd)
|
||||||
init_waitqueue_head(&pd->wqueue);
|
init_waitqueue_head(&pd->wqueue);
|
||||||
pd->bio_queue = RB_ROOT;
|
pd->bio_queue = RB_ROOT;
|
||||||
|
|
||||||
disk->major = pkt_major;
|
disk->major = pktdev_major;
|
||||||
disk->first_minor = idx;
|
disk->first_minor = idx;
|
||||||
disk->fops = &pktcdvd_ops;
|
disk->fops = &pktcdvd_ops;
|
||||||
disk->flags = GENHD_FL_REMOVABLE;
|
disk->flags = GENHD_FL_REMOVABLE;
|
||||||
|
@ -2625,13 +2625,13 @@ static int __init pkt_init(void)
|
||||||
if (!psd_pool)
|
if (!psd_pool)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
ret = register_blkdev(pkt_major, DRIVER_NAME);
|
ret = register_blkdev(pktdev_major, DRIVER_NAME);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printk(DRIVER_NAME": Unable to register block device\n");
|
printk(DRIVER_NAME": Unable to register block device\n");
|
||||||
goto out2;
|
goto out2;
|
||||||
}
|
}
|
||||||
if (!pkt_major)
|
if (!pktdev_major)
|
||||||
pkt_major = ret;
|
pktdev_major = ret;
|
||||||
|
|
||||||
ret = misc_register(&pkt_misc);
|
ret = misc_register(&pkt_misc);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
@ -2646,7 +2646,7 @@ static int __init pkt_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
unregister_blkdev(pkt_major, DRIVER_NAME);
|
unregister_blkdev(pktdev_major, DRIVER_NAME);
|
||||||
out2:
|
out2:
|
||||||
mempool_destroy(psd_pool);
|
mempool_destroy(psd_pool);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -2656,7 +2656,7 @@ static void __exit pkt_exit(void)
|
||||||
{
|
{
|
||||||
remove_proc_entry(DRIVER_NAME, proc_root_driver);
|
remove_proc_entry(DRIVER_NAME, proc_root_driver);
|
||||||
misc_deregister(&pkt_misc);
|
misc_deregister(&pkt_misc);
|
||||||
unregister_blkdev(pkt_major, DRIVER_NAME);
|
unregister_blkdev(pktdev_major, DRIVER_NAME);
|
||||||
mempool_destroy(psd_pool);
|
mempool_destroy(psd_pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue