pdr: Adjust condition to fix line wrap in get_new_record_handle()

C allows implicit conversion of pointers to booleans. Take advantage
of that by dropping the negation and explicit comparison to NULL to
reduce the length of the statement.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If606b5a934e521d6339f69a0145e292d5bdcdb96
diff --git a/src/pdr.c b/src/pdr.c
index 094e1c6..6fb5518 100644
--- a/src/pdr.c
+++ b/src/pdr.c
@@ -37,8 +37,7 @@
 static inline uint32_t get_new_record_handle(const pldm_pdr *repo)
 {
 	assert(repo != NULL);
-	uint32_t last_used_hdl =
-		repo->last != NULL ? repo->last->record_handle : 0;
+	uint32_t last_used_hdl = repo->last ? repo->last->record_handle : 0;
 	assert(last_used_hdl != UINT32_MAX);
 
 	return last_used_hdl + 1;