Skip to content

Commit df2aee5

Browse files
committed
hd-rum-recompress: Remove redundant check
The new operator either returns a valid pointer or throws and exception, so the condition is always false
1 parent 8e4378f commit df2aee5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/hd-rum-translator/hd-rum-recompress.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ int recompress_get_num_active_ports(struct state_recompress *s){
322322

323323
struct state_recompress *recompress_init(struct module *parent) {
324324
auto state = new state_recompress();
325-
if(!state)
326-
return nullptr;
327325

328326
state->parent = parent;
329327

0 commit comments

Comments
 (0)