Yet more sonarlint fixes
This commit is contained in:
@@ -87,20 +87,22 @@ plat_serpt_close(void *p)
|
||||
static void
|
||||
plat_serpt_write_vcon(serial_passthrough_t *dev, uint8_t data)
|
||||
{
|
||||
/* fd_set wrfds;
|
||||
* int res;
|
||||
*/
|
||||
#if 0
|
||||
fd_set wrfds;
|
||||
int res;
|
||||
#endif
|
||||
|
||||
/* We cannot use select here, this would block the hypervisor! */
|
||||
/* FD_ZERO(&wrfds);
|
||||
FD_SET(ctx->master_fd, &wrfds);
|
||||
#if 0
|
||||
FD_ZERO(&wrfds);
|
||||
FD_SET(ctx->master_fd, &wrfds);
|
||||
|
||||
res = select(ctx->master_fd + 1, NULL, &wrfds, NULL, NULL);
|
||||
res = select(ctx->master_fd + 1, NULL, &wrfds, NULL, NULL);
|
||||
|
||||
if (res <= 0) {
|
||||
return;
|
||||
}
|
||||
*/
|
||||
if (res <= 0) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* just write it out */
|
||||
if (dev->mode == SERPT_MODE_HOSTSER) {
|
||||
|
||||
Reference in New Issue
Block a user