about summary refs log tree commit diff
path: root/pkgs/by-name/pt/pterm/0001-dtnetsubs-remove-null-check.patch
blob: 043da784f0a7de9788c4ea9154cd5fb65c29e507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/dtnetsubs.c b/dtnetsubs.c
index ad1c30d..c1fda9b 100644
--- a/dtnetsubs.c
+++ b/dtnetsubs.c
@@ -865,10 +865,7 @@ int dtSend (NetFet *fet, const void *buf, int len)
     ** Update the IN pointer, then wake the send thread.
     */
     fet->sendin = in;
-    if (ssemp (fet) != NULL)
-    {
-        sem_post (ssemp (fet));
-    }
+    sem_post (ssemp (fet));
     
     if (dtSendFree (fet) == 0)
         {