mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
gparam: Remove unnecessary conditionals around preconditions
These cause a static analyzer to think we're trying to actually handle them being NULL, which is not the case. They both must not be NULL, period. No idea why the code was like this originally. Reviewed by mclasen on IRC.
This commit is contained in:
parent
f7d7e5ab2f
commit
09498e52bb
@ -1062,11 +1062,8 @@ g_param_spec_pool_lookup (GParamSpecPool *pool,
|
||||
GParamSpec *pspec;
|
||||
gchar *delim;
|
||||
|
||||
if (!pool || !param_name)
|
||||
{
|
||||
g_return_val_if_fail (pool != NULL, NULL);
|
||||
g_return_val_if_fail (param_name != NULL, NULL);
|
||||
}
|
||||
g_return_val_if_fail (pool != NULL, NULL);
|
||||
g_return_val_if_fail (param_name != NULL, NULL);
|
||||
|
||||
g_mutex_lock (&pool->mutex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user