nmealib: fix a warning
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 14 Jun 2016 20:32:16 +0000 (22:32 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 14 Jun 2016 20:32:34 +0000 (22:32 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/nmealib/include/nmea/sentence.h

index 7aaa6fa..30d1890 100644 (file)
@@ -46,10 +46,6 @@ enum nmeaPACKTYPE {
 };
 
 static INLINE const char * nmea_INFO_smask_packtype_to_string(enum nmeaPACKTYPE packType) {
-  if (!packType) {
-    return NULL;
-  }
-
   switch(packType) {
       case GPGGA:
         return "GPGGA";