Skip to content

Commit be44ddc

Browse files
committed
warnings resolved - linux
1 parent 1acd103 commit be44ddc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/fw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ int switchtec_fw_write_fd(struct switchtec_dev *dev, int img_fd,
247247
int dont_activate, int force,
248248
void (*progress_callback)(int cur, int tot))
249249
{
250-
enum switchtec_fw_dlstatus status;
251-
enum mrpc_bg_status bgstatus;
250+
enum switchtec_fw_dlstatus status = SWITCHTEC_DLSTAT_ERROR_PROGRAM;
251+
enum mrpc_bg_status bgstatus = MRPC_BG_STAT_ERROR;
252252
ssize_t image_size, offset = 0;
253253
int ret;
254254
struct cmd_fwdl cmd = {};
@@ -367,8 +367,8 @@ int switchtec_fw_write_file(struct switchtec_dev *dev, FILE *fimg,
367367
int dont_activate, int force,
368368
void (*progress_callback)(int cur, int tot))
369369
{
370-
enum switchtec_fw_dlstatus status;
371-
enum mrpc_bg_status bgstatus;
370+
enum switchtec_fw_dlstatus status = SWITCHTEC_DLSTAT_ERROR_PROGRAM;
371+
enum mrpc_bg_status bgstatus = MRPC_BG_STAT_ERROR;
372372
ssize_t image_size, offset = 0;
373373
int ret;
374374
struct cmd_fwdl cmd = {};

0 commit comments

Comments
 (0)