be2net: remove local variable 'status'
[cascardo/linux.git] / drivers / net / ethernet / emulex / benet / be_ethtool.c
index 734f655..d2a5baf 100644 (file)
@@ -241,13 +241,11 @@ static u32 lancer_cmd_get_file_len(struct be_adapter *adapter, u8 *file_name)
        u32 data_read = 0, eof;
        u8 addn_status;
        struct be_dma_mem data_len_cmd;
-       int status;
 
        memset(&data_len_cmd, 0, sizeof(data_len_cmd));
        /* data_offset and data_size should be 0 to get reg len */
-       status = lancer_cmd_read_object(adapter, &data_len_cmd, 0, 0,
-                                       file_name, &data_read, &eof,
-                                       &addn_status);
+       lancer_cmd_read_object(adapter, &data_len_cmd, 0, 0, file_name,
+                              &data_read, &eof, &addn_status);
 
        return data_read;
 }