FM: Fix KW issues.

Fix KW issues raised on treble builds.

Change-Id: Ic584f20d3348484e37bc261f34cbbbd366e7f280
diff --git a/fm_hci/fm_hci.cpp b/fm_hci/fm_hci.cpp
index df5eb8c..e19f962 100644
--- a/fm_hci/fm_hci.cpp
+++ b/fm_hci/fm_hci.cpp
@@ -500,12 +500,11 @@
 
         Return<void> hciEventReceived(const hidl_vec<uint8_t>& event) {
             struct fm_event_header_t *temp = (struct fm_event_header_t *) malloc(event.size());
-            if(temp) {
+            if (temp != nullptr) {
                 memcpy(temp, event.data(), event.size());
                 ALOGI("%s: evt_code:  0x%x", __func__, temp->evt_code);
                 enqueue_fm_rx_event(temp);
-            }
-            else {
+            } else {
                 ALOGE("%s: Memory Allocation failed for event buffer ",__func__);
             }
             return Void();