diff options
Diffstat (limited to 'lib/test_kmod.c')
| -rw-r--r-- | lib/test_kmod.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/test_kmod.c b/lib/test_kmod.c index fba78d25e825..337f408b4de6 100644 --- a/lib/test_kmod.c +++ b/lib/test_kmod.c | |||
| @@ -783,10 +783,8 @@ static int kmod_config_sync_info(struct kmod_test_device *test_dev) | |||
| 783 | free_test_dev_info(test_dev); | 783 | free_test_dev_info(test_dev); |
| 784 | test_dev->info = vzalloc(config->num_threads * | 784 | test_dev->info = vzalloc(config->num_threads * |
| 785 | sizeof(struct kmod_test_device_info)); | 785 | sizeof(struct kmod_test_device_info)); |
| 786 | if (!test_dev->info) { | 786 | if (!test_dev->info) |
| 787 | dev_err(test_dev->dev, "Cannot alloc test_dev info\n"); | ||
| 788 | return -ENOMEM; | 787 | return -ENOMEM; |
| 789 | } | ||
| 790 | 788 | ||
| 791 | return 0; | 789 | return 0; |
| 792 | } | 790 | } |
| @@ -1089,10 +1087,8 @@ static struct kmod_test_device *alloc_test_dev_kmod(int idx) | |||
| 1089 | struct miscdevice *misc_dev; | 1087 | struct miscdevice *misc_dev; |
| 1090 | 1088 | ||
| 1091 | test_dev = vzalloc(sizeof(struct kmod_test_device)); | 1089 | test_dev = vzalloc(sizeof(struct kmod_test_device)); |
| 1092 | if (!test_dev) { | 1090 | if (!test_dev) |
| 1093 | pr_err("Cannot alloc test_dev\n"); | ||
| 1094 | goto err_out; | 1091 | goto err_out; |
| 1095 | } | ||
| 1096 | 1092 | ||
| 1097 | mutex_init(&test_dev->config_mutex); | 1093 | mutex_init(&test_dev->config_mutex); |
| 1098 | mutex_init(&test_dev->trigger_mutex); | 1094 | mutex_init(&test_dev->trigger_mutex); |
