Fixed gcc 4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34151 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1284,6 +1284,7 @@ writev_port_etc(port_id id, int32 msgCode, const iovec* msgVecs,
|
|||||||
|
|
||||||
int32 slot = id % sMaxPorts;
|
int32 slot = id % sMaxPorts;
|
||||||
status_t status;
|
status_t status;
|
||||||
|
port_message* message = NULL;
|
||||||
|
|
||||||
MutexLocker locker(sPorts[slot].lock);
|
MutexLocker locker(sPorts[slot].lock);
|
||||||
|
|
||||||
@@ -1326,7 +1327,6 @@ writev_port_etc(port_id id, int32 msgCode, const iovec* msgVecs,
|
|||||||
} else
|
} else
|
||||||
sPorts[slot].write_count--;
|
sPorts[slot].write_count--;
|
||||||
|
|
||||||
port_message* message;
|
|
||||||
status = get_port_message(msgCode, bufferSize, flags, timeout,
|
status = get_port_message(msgCode, bufferSize, flags, timeout,
|
||||||
&message);
|
&message);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user