tUnneeded cast - spoon - dwm status utility (2f30 fork)
 (HTM) git clone git://src.adamsgaard.dk/spoon
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 5334192a401aaa7ff17d0f12f46d02764ac4d11c
 (DIR) parent 0fb222e9af1375535203f10940071164dfad2d13
 (HTM) Author: lostd <lostd@2f30.org>
       Date:   Wed,  2 Nov 2016 14:55:20 +0100
       
       Unneeded cast
       
       Diffstat:
         M wifi.c                              |       6 ++----
       
       1 file changed, 2 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/wifi.c b/wifi.c
       t@@ -167,12 +167,10 @@ wifiread(void *arg, char *buf, size_t len)
                        DPRINTF_U(qual->level);
                        if (max_qual->qual != 0) {
                                /* driver provides a quality metric */
       -                        quality = (unsigned)
       -                            (((float)qual->qual / max_qual->qual) * 100);
       +                        quality = (((float)qual->qual / max_qual->qual) * 100);
                        } else if (max_qual->level != 0) {
                                /* driver provides signal strength (RSSI) */
       -                        quality = (unsigned)
       -                            (((float)qual->level / max_qual->level) * 100);
       +                        quality = (((float)qual->level / max_qual->level) * 100);
                        } else if (max_qual->level == 0) {
                                /* driver provides absolute dBm values */
                                level = qual->level - 0x100;