The previous assert check we had here just checked for sk_out->sk being
-1, but if sk_out itself was set.
Fixes:
83276370ce4d ("fixed compiler warnings if NDEBUG enabled in core code")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
void fio_server_send_start(struct thread_data *td)
{
struct sk_out *sk_out = pthread_getspecific(sk_out_key);
- if (!sk_out || sk_out->sk == -1) {
+
+ if (sk_out->sk == -1) {
log_err("pthread getting specific for key failed, sk_out %p, sk %i, err: %i:%s",
sk_out, sk_out->sk, errno, strerror(errno));
abort();