mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 22:36:43 +07:00
Staging: vme: remove an unnecessary and wrong warning message
The wrong warning message in vme_user_probe() will mislead developers and users. As the error message which prompt cdev_add() error already exists, just remove the unnecessary and wrong message. Signed-off-by: Navy Cheng <navych@126.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e2622fb316
commit
44ae5443ef
@ -561,10 +561,8 @@ static int vme_user_probe(struct vme_dev *vdev)
|
|||||||
vme_user_cdev->ops = &vme_user_fops;
|
vme_user_cdev->ops = &vme_user_fops;
|
||||||
vme_user_cdev->owner = THIS_MODULE;
|
vme_user_cdev->owner = THIS_MODULE;
|
||||||
err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS);
|
err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS);
|
||||||
if (err) {
|
if (err)
|
||||||
dev_warn(&vdev->dev, "cdev_all failed\n");
|
|
||||||
goto err_char;
|
goto err_char;
|
||||||
}
|
|
||||||
|
|
||||||
/* Request slave resources and allocate buffers (128kB wide) */
|
/* Request slave resources and allocate buffers (128kB wide) */
|
||||||
for (i = SLAVE_MINOR; i < (SLAVE_MAX + 1); i++) {
|
for (i = SLAVE_MINOR; i < (SLAVE_MAX + 1); i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user