Remove unneccesary variable

Remove unused `buff` from `print_slow_atomic_cache_start_info()`

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir Jankowski 2021-01-20 14:24:38 +01:00 committed by Adam Rutkowski
parent 035ed3e7f9
commit 636e083e22

View File

@ -540,11 +540,9 @@ const char *get_core_state_name(int core_state)
/* check if device is atomic and print information about potential slow start */ /* check if device is atomic and print information about potential slow start */
void print_slow_atomic_cache_start_info(const char *device_path) void print_slow_atomic_cache_start_info(const char *device_path)
{ {
char buff[MAX_STR_LEN];
struct kcas_cache_check_device cmd_info; struct kcas_cache_check_device cmd_info;
int ret; int ret;
get_dev_path(device_path, buff, sizeof(buff));
ret = _check_cache_device(device_path, &cmd_info); ret = _check_cache_device(device_path, &cmd_info);
if (!ret && cmd_info.format_atomic) { if (!ret && cmd_info.format_atomic) {