we split a function while refactoring in c643781 and now
the comment makes no sense
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
{
struct client_info *ci;
- /* find the right client_info struct and save the
- * resource as its data, so that we can use it later */
wl_list_for_each(ci, &d->clients, link) {
if (ci->wl_client == client)
return ci;
res = wl_resource_create(client, &wl_seat_interface, vers, id);
assert(res);
+ /* save the resource as client's info data,
+ * so that we can use it later */
ci->data = res;
}