Skip to content

Commit c50eec4

Browse files
committed
Addressed review comments
- renamed wolfstp_util.c to wolfsftp_util.c - removed unnecessary if condition
1 parent aa0ca5b commit c50eec4

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

ide/Renesas/e2studio/RX72N/sftp_client/src/app_main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ void main(void)
157157
Open_tcp();
158158
sftp_client_connect(&ctx, &ssh, port);
159159

160-
if (ctx == NULL || ssh == NULL) {
161-
162-
} else {
160+
if (ctx != NULL && ssh != NULL){
163161
do {
164162
n = wolfSSH_SFTP_RealPath(ssh, (char*)".");
165163
ret = wolfSSH_get_error(ssh);

ide/Renesas/e2studio/RX72N/sftp_client/src/wolfstp_util.c renamed to ide/Renesas/e2studio/RX72N/sftp_client/src/wolfsftp_util.c

File renamed without changes.

src/wolfsftp.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,11 +1905,7 @@ struct fd_entry {
19051905
int used;
19061906
};
19071907

1908-
#if defined(__CCRX__)
1909-
static struct fd_entry fd_pool[WOLFSSH_FATFS_MAX_FILES] = {0};
1910-
#else
1911-
static struct fd_entry fd_pool[WOLFSSH_FATFS_MAX_FILES] = { };
1912-
#endif
1908+
static struct fd_entry fd_pool[WOLFSSH_FATFS_MAX_FILES];
19131909
int ff_open(const char *fname, int flag, int perm)
19141910
{
19151911
int i;

0 commit comments

Comments
 (0)